GetWindowDeviceContext


static Handle GetWindowDeviceContext(Handle Window)

This function obtains a device context for an entire window.

Parameters

Handle Window

The handle of the window for which a device context is being obtained.

Return

Handle

The handle of a device context for the window.

Notes

The device context that is obtained includes the system portions of the window such as:

The system areas of the window may be overwritten using a device context of this type.

The function GetSystemMetrics may be used to obtain the dimensions of the components of the system portion (nonclient area) of the window.

The function ReleaseDeviceContext should be called to release the device context when it is no longer required.

Details

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