CMenu::DeleteMenu

Call this member function to delete an item from the menu. If the menu item has an associated pop-up menu, DeleteMenu destroys the handle to the pop-up menu and frees the memory used by the pop-up menu.

Syntax

BOOL DeleteMenu( UINT nPosition, UINT nFlags );

At a Glance

Header File Afxwin.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CMenu Overview, CMenu Member Functions, Menu Classes