CCeCommandBar::InsertMenuBar

This method inserts a menu bar into the command bar.

At a Glance

Header file: Wcebar.h
Platforms: Palm-size PC, H/PC Pro
Windows CE versions: 2.10 and later

Syntax

CMenu* InsertMenuBar(UINT nResourceID, int nButton = CMDBAR_END)

CMenu* InsertMenuBar(LPCTSTR lpszMenuName, int nButton = CMDBAR_END);

Parameters

nResourceID
Integer to be converted to a menu resource.
nButton
Zero-based index of a button in the command bar.
lpszMenuName
Long pointer to the null-terminated string that contains the name of menu to be inserted.

Return Values

A pointer to the menu identified by nButton, or NULL if the function fails.

Remarks

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.