CGdiObject::Detach
Detaches a Windows GDI object from a CGdiObject object and returns a handle to the Windows GDI object.
HGDIOBJ Detach( );
Возвращаемое значение
A HANDLE to the Windows GDI object detached; otherwise NULL if no GDI object is attached.
Требования
Header: afxwin.h