CDeviceGraphicsContext Class

class CDeviceGraphicsContext: public CGraphicsContext

Device context for a specific device.

Defined in: GraphicContext.h

Comments

A DC associated to the device and the device driver specified is created using the CreateDC() API function.

Class Members

CDeviceGraphicsContext(HDC h)

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

CDeviceGraphicsContext(LPCTSTR lpszDriver = NULL, LPCTSTR lpszDevice = NULL, LPCTSTR lpszOutput = NULL, const DEVMODE* lpInitData = NULL)

Creation constructor. Creates a new DC on the device given, and attaches it to this instance.

void Create(LPCTSTR lpszDriver = NULL, LPCTSTR lpszDevice = NULL, LPCTSTR lpszOutput = NULL, const DEVMODE* lpInitData = NULL)

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