CDC::Attach
This method attaches an hDC property to the CDC object. The hDC property is stored in m_hDC, the output device context, and in m_hAttribDC, the attribute device context.
BOOL Attach(
HDC hDC );
Parameters
- hDC
A Windows device context.
Return Value
Nonzero if the function is successful; otherwise, it is zero.
Requirements
** Windows CE versions:** 1.0 and later
Header file: Declared in Afxwin.h
Platform: H/PC Pro, Palm-size PC, Pocket PC