Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MENUBARINFO structure

Contains menu bar information.

Syntax


typedef struct tagMENUBARINFO {
  DWORD cbSize;
  RECT  rcBar;
  HMENU hMenu;
  HWND  hwndMenu;
  BOOL  fBarFocused;
  BOOL  fFocused;
} MENUBARINFO, *PMENUBARINFO;

Members

cbSize

Type: DWORD

The size of the structure, in bytes. The caller must set this to sizeof(MENUBARINFO).

rcBar

Type: RECT

The coordinates of the menu bar, popup menu, or menu item.

hMenu

Type: HMENU

A handle to the menu bar or popup menu.

hwndMenu

Type: HWND

A handle to the submenu.

fBarFocused

Type: BOOL

If the menu bar or popup menu has the focus, this member is TRUE. Otherwise, the member is FALSE.

fFocused

Type: BOOL

If the menu item has the focus, this member is TRUE. Otherwise, the member is FALSE.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

See also

Reference
GetMenuBarInfo
RECT
Conceptual
Menus

 

 

Show:
© 2017 Microsoft