GetMenuItemInfo

This function retrieves information about a menu item.

BOOL GetMenuItemInfo(
  HMENU hMenu, 
  UINT uItem, 
  BOOL fByPosition, 
  LPMENUITEMINFO lpmii 
);

Parameters

  • hMenu
    [in] Handle to the menu that contains the menu item.
  • uItem
    [in] Specifies the identifier or position of the menu item to get information about. The meaning of this parameter depends on the value of fByPosition.
  • fByPosition
    [in] Value that specifies the meaning of uItem. If this parameter is FALSE, uItem is a menu item identifier. Otherwise, it is a menu item position.
  • lpmii
    [in, out] Long pointer to a MENUITEMINFO structure that specifies the information to retrieve and receives information about the menu item.

Return Values

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

Remarks

The system provides the check mark bitmap; therefore, the MENUITEMINFO structure does not contain information about the check mark bitmaps.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winuser.h.
Link Library: Menu.lib.

See Also

SetMenuItemInfo | MENUITEMINFO | Menu Functions

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.