CPaintGraphicsContext::CPaintGraphicsContext

CPaintGraphicsContext::CPaintGraphicsContext(HDC h)

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

Defined in: GraphicContext.h

Parameters

h

Device context.

Comments

The device context passed in must have been created using the BeginPaint() API function; otherwise the deallocation process will have undefined results as it will try to invoke EndPaint() on a DC handle that wasn't created appropiately for such function.