Use this member function to obtain a pointer to a CGdiObject object given a handle to a Windows GDI object. If a CGdiObject object is not already attached to the Windows GDI object, a temporary CGdiObject object is created and attached.
static CGdiObject* PASCAL FromHandle( HGDIOBJ hObject );
| Header File | Afxwin.h | 
| Platforms | |
| Versions | 1.0 and later | 
| Complete documentation | Visual C++ documentation | 
CGdiObject Overview, CGdiObject Member Functions, Graphical Drawing Object Classes, CGdiObject::DeleteTempMap