GetMenuItemInfo

This function retrieves information about a menu item.

At a Glance

Header file: Winuser.h
Windows CE versions: 1.0 and later

Syntax

BOOL GetMenuItemInfo(HMENU hmenu, UINT uItem, BOOL fByPosition,
LPMENUITEMINFO pmii);

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.

See Also

SetMenuItemInfo, MENUITEMINFO