Function _WinAPI_SetWindowExt

Function Reference


Sets the horizontal and vertical extents of the window for a device context by using the specified values

#include <WinAPIGdi.au3>
_WinAPI_SetWindowExt ( $hDC, $iXExtent, $iYExtent )


$hDC Handle to the device context.
$iXExtent The window's horizontal extent in logical units.
$iYExtent The window's vertical extent in logical units.

Return Value

Success: True
Failure: False


The _WinAPI_SetWindowExt() works only if $MM_ANISOTROPIC or $MM_ISOTROPIC mapping modes are set, otherwise,
calls to this function are ignored.

Call _WinAPI_GetExtended() to retrieve a $tagSIZE structure containing the previous window extents.



See Also

Search SetWindowExtEx in MSDN Library.