CMenu::AppendMenu

This method appends a new item to the end of a menu.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

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

Remarks

The following flags are not supported for the ulFlags parameter:

MF_GRAYED can be used in place of MF_DISABLED and MFS_GRAYED.

Windows CE 1.0 does not support cascading menus. If you are using version 1.0, you cannot insert an MF_POPUP menu into another pop-up menu.

In version 1.0, the following flags are not supported:

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

See Also

CMenu::InsertMenu, CMenu::RemoveMenu, CMenu::Detach