CDC::FromHandle
Visual Studio 2012
Returns a pointer to a CDC object when given a handle to a device context.
static CDC* PASCAL FromHandle( HDC hDC );
See the example for CPrintDialog::GetPrinterDC.