CommandBar_GetMenu (Compact 2013)

3/28/2014

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

Syntax

HMENU CommandBar_GetMenu(
  HWND hwndCB, 
  WORD iButton
); 

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 Value

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

Header

commctrl.h

Library

commctrl.lib

See Also

Reference

Command Bars Functions
CommandBar_Create
CommandBar_InsertMenubar