CDC::Attach
Visual Studio 2012
Use this member function to attach an hDC to the CDC object.
BOOL Attach( HDC hDC );
Use this member function to attach an hDC to the CDC object.
BOOL Attach( HDC hDC );