CCeCommandBar::GetMenuBar

This method retrieves a pointer to a menu on 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* GetMenuBar(int nButton) const;

Parameters

nButton
Zero-based index of the command bar separator button that holds the menu..

Return Values

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

Remarks

This method fails if the separator button identified by nButton does not contain a menu bar.