Export (0) Print
Expand All
Expand Minimize

CDC::FromHandle

Returns a pointer to a CDC object when given a handle to a device context.

static CDC* PASCAL FromHandle( 
   HDC hDC  
);

hDC

Contains a handle to a Windows device context.

The pointer may be temporary and should not be stored beyond immediate use.

If a CDC object is not attached to the handle, a temporary CDC object is created and attached.

Header: afxwin.h

Show:
© 2014 Microsoft