CMenu

The CMenu class encapsulates the functionality associated with a Windows menu.

At a Glance

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

Remarks

To add a menu to the command bar in Windows CE applications, use the new CFrameWnd::InsertMenu member function.

MFC for Windows CE supports the following member functions of the CMenu class differently than the standard MFC library does.

CMenu::AppendMenu

CMenu::EnableMenuItem

CMenu::GetMenuString

CMenu::InsertMenu

CMenu::TrackPopupMenu

Windows CE does not support the following CMenu member functions.

GetMenuContextHelpId

LoadMenuIndirect

SetMenuContextHelpId

SetMenuItemBitmaps

Note Always place command bar menus in the leftmost portion of the command bar. If you provide File, Edit, View, Insert, Format, Tools, and/or Window menus, they must appear in this order, from left to right.

See Also

CMenu Member Functions, CMenu Data Members, Menu Classes, CObject