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


CPaintDC::m_hWnd

The HWND to which this CPaintDC object is attached.

HWND m_hWnd;

Заметки

m_hWnd is a protected variable of type HWND.

Пример

// Get a dc for a CWnd object pointer.
CPaintDC dc(pWnd);

// Send my private massage.
::SendMessage(pWnd->m_hWnd, WM_MYMESSAGE, (LPARAM) &dc.m_ps, 0);

Требования

Header: afxwin.h

См. также

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

CPaintDC Class

CPaintDC Members

Hierarchy Chart