CMenu::AppendMenu
This method appends a new item to the end of a menu.
BOOL AppendMenu (
UINT nFlags,
UINT nIDNewItem = 0,
LPCTSTR lpszNewItem = NULL);
BOOL AppendMenu (
UINT nFlags,
UINT nIDNewItem,
const CBitmap* pBmp );
Parameters
- nFlags
- Specifies information about the state of the new menu item when it is added to the menu. It consists of one or more of the values listed in the Remarks section.
- nIDNewItem
- Specifies either the command ID of the new menu item or, if nFlags is set to MF_POPUP, the menu handle (HMENU) of a pop-up menu. The nIDNewItem parameter is ignored, not needed, if nFlags is set to MF_SEPARATOR.
- lpszNewItem
- Specifies the content of the new menu item. The nFlags parameter is used to interpret lpszNewItem in the following way: