IUIX_CmdMenu::FindFirstItemByCmdID Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
Line 3: | Line 3: | ||
{{#customTitle:IUIX_CmdMenu::FindFirstItemByCmdID Method}} | {{#customTitle:IUIX_CmdMenu::FindFirstItemByCmdID Method}} | ||
{{#parentPage:PXV:IUIX_CmdMenu#Methods|FindFirstItemByCmdID|method}} | {{#parentPage:PXV:IUIX_CmdMenu#Methods|FindFirstItemByCmdID|method}} | ||
− | |||
{{ToReview}} | {{ToReview}} | ||
− | + | Finds first occurrence of the menu item that corresponds to the given command ID. | |
== Syntax == | == Syntax == | ||
Line 15: | Line 14: | ||
== Parameters == | == Parameters == | ||
;nCmdID | ;nCmdID | ||
− | :[in] Value of LONG. | + | :[in] Value of LONG containing the command ID that corresponds to the command menu item. |
;bReversed | ;bReversed | ||
− | :[in, defaultvalue(0)] Value of VARIANT_BOOL. | + | :[in, defaultvalue(0)] Value of VARIANT_BOOL representing whether the search should be done in reversed order. |
;nIndex | ;nIndex | ||
− | :[out, retval] Pointer to LONG. | + | :[out, retval] Pointer to LONG containing the resulting item index. |
== Return Value == | == Return Value == |
Latest revision as of 06:15, 1 April 2016
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.