Share via


CDC::m_hDC

This data member contains the output device context handle for this CDC object.

HDC m_hDC; 

Remarks

By default, m_hDC is equal to m_hAttribDC, the other device context wrapped by CDC. In general, CDC GDI calls that create output go to the m_hDC device context. You can initialize m_hDC and m_hAttribDC to point to different devices. See the CDC class description for more information on the use of these two device contexts.

Requirements

**  Windows CE versions:** 1.0 and later
  Header file: Declared in Afxwin.h
  Platform: H/PC Pro, Palm-size PC, Pocket PC

See Also

CDC::m_hAttribDC, CDC::SetOutputDC, CDC::ReleaseOutputDC