Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Use this member function to attach an hDC to the CDC object.
BOOL Attach(
HDC hDC
);
Parameters
- hDC
A Windows device context.
Return Value
Nonzero if the function is successful; otherwise 0.
Remarks
The hDC is stored in both m_hDC, the output device context, and in m_hAttribDC, the attribute device context.
Requirements
Header: afxwin.h