IUIX_CmdMenu::FindFirstItemByCmdID Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IUIX_CmdMenu::FindFirstItemByCmdID Method}}
 
{{#customTitle:IUIX_CmdMenu::FindFirstItemByCmdID Method}}
{{#parentPage:PXV:IUIX_CmdMenu|method}}
+
{{#parentPage:PXV:IUIX_CmdMenu#Methods|FindFirstItemByCmdID|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Finds first occurrence of the menu item that corresponds to the given command ID.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT FindFirstItemByCmdID([in] LONG nCmdID, [in, defaultvalue(0)] VARIANT_BOOL bReversed, [out, retval] LONG* pIndex);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT FindFirstItemByCmdID([in]                   LONG         nCmdID,
 +
                            [in, defaultvalue(0)] VARIANT_BOOL bReversed,
 +
                            [out, retval]         LONG*         nIndex);</pre>
  
 
== 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.
;''pIndex''
+
;nIndex
:[out, retval]  Pointer to LONG.
+
:[out, retval]  Pointer to LONG containing the resulting item index.
  
 
== Return Value ==
 
== Return Value ==
Line 22: Line 24:
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IUIX_CmdMenu|IUIX_CmdMenu]].
+
[[PXV:IUIX_CmdMenu|IUIX_CmdMenu]]

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.

See Also

IUIX_CmdMenu