Поделиться через


AtlCreateTargetDC

Creates a device context for the device specified in the DVTARGETDEVICE structure.

HDC AtlCreateTargetDC(
   HDC hdc,
   DVTARGETDEVICE* ptd 
);

Параметры

  • hdc
    [in] The existing handle of a device context, or NULL.

  • ptd
    [in] A pointer to the DVTARGETDEVICE structure that contains information about the target device.

Возвращаемое значение

Returns the handle to a device context for the device specified in the DVTARGETDEVICE. If no device is specified, returns the handle to the default display device.

Заметки

If the structure is NULL and hdc is NULL, creates a device context for the default display device.

If hdc is not NULL and ptd is NULL, the function returns the existing hdc.

Требования

Header: atlwin.h

См. также

Основные понятия

Device Context Global Functions