IUIX_CmdMenu::FindFirstItemByCmdID Method
From PDF XChange PDF SDK
Finds first occurrence of the menu item that corresponds to the given command ID.
Syntax
HRESULT FindFirstItemByCmdID([in] LONG nCmdID, [in, defaultvalue(0)] VARIANT_BOOL bReversed, [out, retval] LONG* nIndex);
Parameters
- nCmdID
- [in] Value of LONG containing the command ID that corresponds to the command menu item.
- bReversed
- [in, defaultvalue(0)] Value of VARIANT_BOOL representing whether the search should be done in reversed order.
- nIndex
- [out, retval] Pointer to LONG containing the resulting item index.
Return Value
Returns S_OK if operation was successful or error code in other cases.