Help Center

GetBarInfofunction

Retrieves information about the specified menu bar.

Windowsfunctiondoc-orphan
No implementation located. This member is documented, but the source scan found no matching declaration. It is likely declared in a header this scan does not resolve, or provided by a macro.

Syntax

FUNCTION GetBarInfo (BYVAL hwnd AS HWND, BYVAL idObject AS LONG, BYVAL idItem AS LONG, BYVAL pmbi AS MENUBARINFO PTR) AS BOOLEAN
FUNCTION GetBarInfo (BYVAL hwnd AS HWND, BYVAL idObject AS LONG, BYVAL idItem AS LONG, BYREF mbi AS MENUBARINFO) AS BOOLEAN
FUNCTION GetBarInfo (BYVAL hWin AS HWND, BYVAL idObject AS LONG, BYVAL idItem AS LONG) AS MENUBARINFO

Parameters

NameDescription
hWinA handle to the window or dialog that owns the menu bar.
idObjectThe menu object. This parameter can be one of the following values:
OBJID_CLIENT: &hFFFFFFFC - The popup menu associated with the window.
OBJID_MENU: &hFFFFFFFD - The menu bar associated with the window
OBJID_SYSMENU: &hFFFFFFFF - The system menu associated with the window
idItemThe item for which to retrieve information. If this parameter is zero, the function retrieves information about the menu itself. If this parameter is 1, the function retrieves information about the first item on the menu, and so on.

Return value

A MENUBARINFO structure.

Description

Retrieves information about the specified menu bar.

Reference

  • Documented in Windows/WIndows Controls/CMenu Class.md
  • Topic: About Menus