---
name: "GetMenuPosFromID"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GetMenuPosFromID"
---

# GetMenuPosFromID(3w)

## NAME

**GetMenuPosFromID** (SHLWAPI.@)

## SYNOPSIS

INT GetMenuPosFromID\
  (\
   HMENU *hMenu*,\
   UINT  *wID*\
  )

## DESCRIPTION

Return the position of a menu item from its Id.

## PARAMS

*hMenu* **\[In\]**  Menu containing the item.

*wID* **\[In\]**  Id of the menu item.

## RETURNS

**Success:** The index of the menu item in *hMenu*.

**Failure:** **-1**, If the item is not found.

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

Implemented in **"dlls/shlwapi/ordinal.c"**.

Debug channel **"shell"**.
