CGdiObject::DeleteTempMap

Called automatically by the CWinApp idle-time handler, DeleteTempMap deletes any temporary CGdiObject objects created by FromHandle.

static void PASCAL DeleteTempMap( );

Remarks

DeleteTempMap detaches the Windows GDI object attached to a temporary CGdiObject object before deleting the CGdiObject object.

Example

// DeleteTempMap() is a static member and so does not need to 
// be called within the scope of an instantiated CGdiObject object.
CGdiObject::DeleteTempMap();

Requirements

Header: afxwin.h

See Also

Reference

CGdiObject Class

Hierarchy Chart

CGdiObject::Detach

CGdiObject::FromHandle

Other Resources

CGdiObject Members