Method XbpWindow():winDevice() Foundation

Determines the device context for the window.

:winDevice() --> oWindowDC

This method returns the device context associated with the window.


The method :winDevice() returns the device context of the window. This is especially important when graphic output, containing graphical segments is to occur in the window. In this case, the presentation space (PS) of the window returned by the method :lockPS() is not appropriate, since it is a special "Micro PS" where graphic segments cannot be used. Segments can only be used in a normal PS created by the class XbpPresSpace. A device context for this presentation space must be specified to indicate the output device to be used. Whenever the output device is a window, the return value of :winDevice() must be specified as the device context.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.