Hi dear forum.
Does anybody have an example that shows how to use these GDI functions for zooming a window ?
I have searched but couldn't find any vb examples at all. The msdn documentation is not elaborate enough.
Does anybody have an example that shows how to use these GDI functions for zooming a window ?
Code:
Declare Function ScaleWindowExtEx Lib "gdi32" _
(ByVal hdc As LongPtr, ByVal nXnum As Long, _
ByVal nXdenom As Long, ByVal nYnum As Long, _
ByVal nYdenom As Long, lpSize As Size) As Long
Declare Function ScaleViewportExtEx Lib "gdi32" _
(ByVal hdc As LongPtr, ByVal nXnum As Long, _
ByVal nXdenom As Long, ByVal nYnum As Long, _
ByVal nYdenom As Long, lpSize As Size) As Long