CMenu::AppendMenu

Call this member function to append a new item to the end of a menu.

Syntax

BOOL AppendMenu ( UINT nFlags, UINT nIDNewItem = 0, LPCTSTR lpszNewItem = NULL );

At a Glance

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

Remarks

The following flags are not supported for the ulFlags parameter:

MF_BITMAP

MF_DISABLED

MFS_GRAYED

MF_GRAYED can be used in place of MF_DISABLED and MFS_GRAYED.

Windows CE 1.0 doesn't support cascading menus. If you're using version 1.0, you can't insert an MF_POPUP menu into another pop-up menu.

In version 1.0, the following flags are not supported either.

MF_POPUP

MF_MENUBREAK

MF_MENUBARBREAK

In Windows CE versions 2.0 and later, these flags are supported. Cascading menus are also supported.

See Also

CMenu Overview, CMenu Member Functions, Menu Classes CMenu::InsertMenu, CMenu::RemoveMenu, CMenu::Detach