handle get_device_context_extended(handle window,
                                   handle region,
                                   unsigned flags)

This function creates a window device context with clipping control.


handle window

The handle of the window for which the device context is required.

handle region

The handle of a region used to clip the graphics. When drawing, this region is combined with the clipping region of the window.

unsigned flags

Clipping flags - see enumeration device_extended.



The handle of the new device context or null if an error occurred.


If any of the flags:

were specified when registering the window class, the device context belongs to the class.

When the device context is no longer required, it should be destroyed using the function release_device_context.