static Handle GetWindowDeviceContext(Handle Window)

This function obtains a device context for an entire window.


Handle Window

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



The handle of a device context for the window.


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.


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