Share via


CommandBar_GetMenu (Windows CE 5.0)

Send Feedback

This function retrieves the handle to a menu on the command bar.

HMENUCommandBar_GetMenu(HWNDhwndCB, WORDiButton);

Parameters

  • hwndCB
    Handle to the command bar's window. This handle is returned by the CommandBar_Create function when the command bar is created.
  • iButton
    Zero-based index of the command bar separator button that holds the menu.

Return Values

The handle to the menu identified by the index in the iButton parameter indicates success. NULL indicates failure.

Remarks

If the separator button identified by the iButton parameter does not contain a menu bar, the CommandBar_GetMenu function will fail.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.
Link Library: Commctrl.lib.

See Also

CommandBar_Create | CommandBar_InsertMenubar

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.