Export (0) Print
Expand All

GetMenuItemInfo

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function retrieves information about a menu item.


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

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. Note that you must set MENUITEMINFO.cbSize to sizeof(MENUITEMINFO) before calling this function.

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

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

Headerwinuser.h
LibraryMenu.lib
Windows Embedded CEWindows CE 1.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

ADD
Show:
© 2014 Microsoft