Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic


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

BOOL Attach( 
   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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.