Share via


CommandBar_DrawMenuBar

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This function repositions and redraws the command bar after a menu in the command bar has been modified.

Syntax

BOOL CommandBar_DrawMenuBar(
  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 menu bar within the command bar.

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

You must always call CommandBar_DrawMenuBar after you modify a menu in a command bar. Do not call DrawMenuBar.

An application should not use 0xFFFFFFFF as the command identifier of a button or separator in the command bar. This identifier is reserved for the command bar's use.

Requirements

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

See Also

Reference

CommandBar_Create
CommandBar_GetMenu
DrawMenuBar