The CMenu class encapsulates the functionality associated with a Windows menu.
Header File | Afxwin.h |
Platforms | |
Versions | 1.0 and later |
Complete documentation | Visual C++ documentation |
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.
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.
CMenu Member Functions, CMenu Data Members, Menu Classes, CObject