handle get_window_device_context(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 get_system_metrics may be used to obtain the dimensions of the components of the system portion (nonclient area) of the window.

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