SetWindowExtent


static Point SetWindowExtent(Handle Device,
                             int X,
                             int Y)

This function sets the horizontal and vertical extent of the window for a device context.

Parameters

Handle Device

The handle of the device context.

int X

The x-coordinate (in logical units) of the new extent of the window.

int Y

The y-coordinate (in logical units) of the new extent of the window.

Return

Point

The previous window extent.

Notes

When any of the unit modes:

is set, calls to this function and to the function SetViewportExtent are ignored. When the unit mode is Unit::Isotropic, this function should be called prior to calling the function SetViewportExtent.

Details

Name Space IPlusPlus::Graphics
Class Gdi
Assembly IPlusPlus.WinPlus.dll