Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Win 2 API - <b>scalewindowext</b> modify window extents http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ScaleWindowExt     Modify Window Extents

DWORD ScaleWindowExt(hDC, Xnum, Xdenom, Ynum, Ydenom)
HDC hDC;
short Xnum;
short Xdenom;
short Ynum;
short Ydenom;

Returns:        Previous Window extents. Y in high order word, X in
                low order word.

Note:       The following formula is used:

                xNewWE = (xOldWE x Xnum) / Xdenom
                yNewWE = (yOldWE x Ynum) / Ydenom

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson