CWindowGraphicsContext Class

class CWindowGraphicsContext: public CWindowGraphicsContextBase

Device context for the window client area.

Defined in: GraphicContext.h

Comments

The API functions GetDC()/ReleaseDC() are used to allocate a DC for the client area of the window.

Class Members

CClientGraphicsContext([HDC h])

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

CClientGraphicsContext(HWND hWnd)

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

void  Create(HWND hWnd)

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