Share via


CPaintDC::m_hWnd

The HWND to which this CPaintDC object is attached.

HWND m_hWnd;

Remarks

m_hWnd is a protected variable of type HWND.

Example

// 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);

Requirements

Header: afxwin.h

See Also

Reference

CPaintDC Class

Hierarchy Chart

Other Resources

CPaintDC Members