BOOL GetMenuBarInfo(
HWND hwnd,
LONG idObject,
LONG idItem,
PMENUBARINFO pmbi
); DECLARE INTEGER GetMenuBarInfo IN user32;
INTEGER hWindow,;
LONG idObject,;
LONG idItem,;
INTEGER pmbi hwnd [in] Handle to the window (menu bar) whose information is to be retrieved.
idObject [in] Specifies the menu object. This parameter can be one of the following values: OBJID_CLIENT, OBJID_MENU, OBJID_SYSMENU.
idItem [in] Specifies the item for which to retrieve information.
pmbi [out] Pointer to a MENUBARINFO structure that receives the information.
If the function succeeds, the return value is nonzero.
Note that you must set MENUBARINFO.cbSize to sizeof(MENUBARINFO) before calling this function.
See also: GetMenuItemInfo, GetSystemMenu.
Home