CWindowGraphicsContext Class

class CWindowGraphicsContext: public CWindowGraphicsContextBase

Device context for the entire window.

Defined in: GraphicContext.h

Comments

The API functions GetWindowDC()/ReleaseDC() are used to allocate a DC for the entire window area, including the non-client area.

Class Members

CWindowGraphicsContext([HDC h])

Attach constructor. Attaches the given DC handle to this instance.

CWindowGraphicsContext(HWND hWnd)

Creates a new window DC on the given window and attaches it to this instance.

void Create(HWND hWnd)

Creates a new window DC on the given window and attaches it to this instance.