Partager via


CMenu::DestroyMenu

Destroys the menu and any Windows resources that were used.

BOOL DestroyMenu( );

Return Value

Nonzero if the menu is destroyed; otherwise 0.

Remarks

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

Example

See the example for CMenu::CreateMenu.

Requirements

Header: afxwin.h

See Also

Concepts

CMenu Class

CMenu Members

Hierarchy Chart

DestroyMenu