CGdiObject::Detach

Detaches a Windows GDI object from a CGdiObject object and returns a handle to the Windows GDI object.

HGDIOBJ Detach( );

Return Value

A HANDLE to the Windows GDI object detached; otherwise NULL if no GDI object is attached.

Requirements

Header: afxwin.h

See Also

Concepts

CGdiObject Class

CGdiObject Members

Hierarchy Chart

CGdiObject::Attach