We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.


Destroys the menu and any Windows resources that were used.

BOOL DestroyMenu( );

Nonzero if the menu is destroyed; otherwise 0.

The menu is detached from the CMenu object before it is destroyed. The Windows DestroyMenu function is automatically called in the CMenu destructor.

See the example for CMenu::CreateMenu.

Header: afxwin.h