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


CDC::Attach

Use this member function to attach an hDC to the CDC object.

BOOL Attach(
   HDC hDC 
);

Параметры

  • hDC
    A Windows device context.

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

Nonzero if the function is successful; otherwise 0.

Заметки

The hDC is stored in both m_hDC, the output device context, and in m_hAttribDC, the attribute device context.

Требования

Header: afxwin.h

См. также

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

CDC Class

CDC Members

Hierarchy Chart

CDC::Detach

CDC::m_hDC

CDC::m_hAttribDC