Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 14973

ScaleWindowExtEx, ScaleViewportExtEx for zooming

$
0
0
Hi dear forum.

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

I have searched but couldn't find any vb examples at all. The msdn documentation is not elaborate enough.

Viewing all articles
Browse latest Browse all 14973

Trending Articles