GetMenuPosFromID function
[GetMenuPosFromID is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions.]
Determines the position of an item in a menu. Used in the case where the item's ID is known.
Syntax
int GetMenuPosFromID(
_In_ HMENU hmenu,
UINT id
);
Parameters
- hmenu [in]
-
Type: HMENU
The handle of the menu.
- id
-
Type: UINT
An application-defined 16-bit value that identifies the menu item.
Return value
Type: int
The item's zero-based position in the menu.
Remarks
Beginning with Windows Vista, this function is declared in Shlwapi.h.
Windows XP: This function is declared in Shlwapi.dll.
Requirements
|
Minimum supported client |
Windows XP [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2003 [desktop apps only] |
|
End of client support |
Windows Vista |
|
End of server support |
Windows Server 2008 |
|
Header |
|
|
Library |
|
|
DLL |
|