CMenu::DeleteTempMap
staticvoidPASCALDeleteTempMap();
Remarks
Called automatically by the CWinApp idle-time handler, DeleteTempMap deletes any temporary CMenu objects created by the FromHandle member function. DeleteTempMap detaches the Windows menu object attached to a temporary CMenu object before deleting the CMenu object.
Example
// The following example is correct:
CMenu::DeleteTempMap();
// The following example is incorrect.
// DeleteTempMap() is a static member and cannot be called
// within the scope of an instantiated CMenu object.
pMenu->DeleteTempMap(); // Causes compiler error