Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

MENUBARINFO structure (winuser.h)

Contains menu bar information.

Syntax

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

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.

fUnused

Requirements

Requirement Value
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

Conceptual

GetMenuBarInfo

Menus

RECT

Reference


Feedback

Was this page helpful?

Additional resources