Partager via


CommandBar_InsertMenubar (Windows Embedded CE 6.0)

1/6/2010

This function inserts a menu bar into the command bar.

Syntax

BOOL CommandBar_InsertMenubar(
  HWND hwndCB, 
  HINSTANCE hInst, 
  WORD idMenu, 
  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.
  • hInst
    Handle to the application instance.
  • idMenu
    Resource identifier of the menu bar to insert in the command bar.
  • iButton
    Zero-based index of a button. CommandBar_InsertMenubar inserts the menu bar to the left of this button.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

Use the same type of menu bar in the command bar of a Windows Embedded CE application that you use for the main menu in an application running on a Windows desktop platform.

Requirements

Header commctrl.h
Library commctrl.lib
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

Command Bars Functions
CommandBar_Create
CommandBar_GetMenu
CommandBar_InsertButton
CommandBar_InsertComboBox
CommandBar_InsertMenubarEx