This method inserts a menu bar into the command bar.
Header file: | Wcebar.h |
Platforms: | Palm-size PC, H/PC Pro |
Windows CE versions: | 2.10 and later |
CMenu* InsertMenuBar(UINT nResourceID, int nButton = CMDBAR_END)
CMenu* InsertMenuBar(LPCTSTR lpszMenuName, int nButton = CMDBAR_END);
A pointer to the menu identified by nButton, or NULL if the function fails.
The two implementations of this method identify the menu to be added either by resource identifier number or by name, respectively.
This method inserts the menu to the left of the button identified by nButton.