CDeviceGraphicsContext::CDeviceGraphicsContext

CDeviceGraphicsContext::CDeviceGraphicsContext(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 CreateDC API function; otherwise the deallocation process will have undefined results as it will try to invoke DeleteDC() on a DC handle that wasn't created appropiately for such function.