Compartilhar via


GetMenuItemInfo (Windows CE 5.0)

Send Feedback

This function retrieves information about a menu item.

BOOLGetMenuItemInfo(HMENUhMenu, UINTuItem, BOOLfByPosition,LPMENUITEMINFOlpmii );

Parameters

  • hMenu
    [in] Handle to the menu that contains the menu item.
  • uItem
    [in] The menu item identifier or the menu item position.
  • fByPosition
    [in] Boolean value of TRUE if uItem is set to a menu item position. This parameter is set to FALSE if uItem is set to a menu item identifier.
  • 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 | Menus Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.