ShlwApiGetMenuPosFromID Method
Determines the position of an item in a menu. Used in the case where the item's ID is known.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("ShlwApi.dll", ExactSpelling = true, SetLastError = true)]
public static int GetMenuPosFromID(
IntPtr hMenu,
uint id
)
<DllImportAttribute("ShlwApi.dll", ExactSpelling := true, SetLastError := true>]
Public Shared Function GetMenuPosFromID (
hMenu As IntPtr,
id As UInteger
) As Integer
Dim hMenu As IntPtr
Dim id As UInteger
Dim returnValue As Integer
returnValue = ShlwApi.GetMenuPosFromID(hMenu,
id)
public:
[DllImportAttribute(L"ShlwApi.dll", ExactSpelling = true, SetLastError = true)]
static int GetMenuPosFromID(
IntPtr hMenu,
unsigned int id
)
[<DllImportAttribute("ShlwApi.dll", ExactSpelling = true, SetLastError = true)>]
static member GetMenuPosFromID :
hMenu : IntPtr *
id : uint32 -> int
No code example is currently available or this language may not be supported.
- hMenu IntPtr
-
The handle of the menu.
- id UInt32
-
An application-defined 16-bit value that identifies the menu item.
Int32
The item's zero-based position in the menu.