IASImageMenu::get_ID

This method gets the identifier of a menu item, specified by its index.

Syntax

HRESULT get_ID( long index short *pwID );

Parameters

index
[in] Index of the item.
pwID
[out] Pointer to the user-defined item identifier.

Return Values

NOERROR indicates success. E_INVALIDARG indicates that the argument is invalid.

Remarks

The index is based on the order in which the menu items are displayed. The identifier is assigned by the user when the item is added to the menu.

See Also

IASImageMenu::get_FocusIndex