Partager via


DrawMenuBar (Compact 2013)

3/28/2014

This function redraws the menu bar section of the specified window's command bar.

Syntax

BOOL DrawMenuBar(
  HWND hWnd
);

Parameters

  • hWnd
    [in] Handle to the window for which the menu bar needs to be redrawn.

Return Value

Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

Remarks

If the menu bar changes after Windows Embedded Compact has created the window, you must call this function to redraw the changed menu bar.

Requirements

Header

winuser.h

Library

Drawmbar.lib,
Menu.lib

See Also

Reference

Menu Functions
CreateMenu
DeleteMenu
RemoveMenu
CommandBar_DrawMenuBar