IUIX_CmdItemBox::FindFirstItemByCmdID Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IUIX_CmdItemBox::FindFirstItemByCmdID Method}}
 
{{#customTitle:IUIX_CmdItemBox::FindFirstItemByCmdID Method}}
{{#parentPage:PXV:IUIX_CmdItemBox|method}}
+
{{#parentPage:PXV:IUIX_CmdItemBox#Methods|FindFirstItemByCmdID|method}}
{{ToWrite}}
+
 
{{ToReview}}
 
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Searches for the first command item in the command items box by the correspondent command's ID.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT FindFirstItemByCmdID([in] LONG nCmdID, [out, retval] LONG* pIndex);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT FindFirstItemByCmdID([in]           LONG   nCmdID,
 +
                            [out, retval] LONG* nIndex);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''nCmdID''
+
;nCmdID
:[in]  Value of LONG.
+
:[in]  Value of LONG containing the command's ID that will be used to find first correspondent command item.
;''pIndex''
+
;nIndex
:[out, retval]  Pointer to LONG.
+
:[out, retval]  Pointer to LONG containing the index of the correspondent item. If no command was found then '''-1''' will be returned.
  
 
== Return Value ==
 
== Return Value ==
Line 20: Line 21:
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IUIX_CmdItemBox|IUIX_CmdItemBox]].
+
[[PXV:IUIX_CmdItemBox|IUIX_CmdItemBox]]

Latest revision as of 08:02, 24 March 2016


Searches for the first command item in the command items box by the correspondent command's ID.

Syntax

HRESULT FindFirstItemByCmdID([in]           LONG   nCmdID,
                             [out, retval]  LONG*  nIndex);

Parameters

nCmdID
[in] Value of LONG containing the command's ID that will be used to find first correspondent command item.
nIndex
[out, retval] Pointer to LONG containing the index of the correspondent item. If no command was found then -1 will be returned.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IUIX_CmdItemBox