IUIX_CmdBar::FindItemByCtl Method

From PDF XChange PDF SDK
Jump to: navigation, search
(Automatic page editing by robot)
 
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IUIX_CmdBar::FindItemByCtl Method}}
 
{{#customTitle:IUIX_CmdBar::FindItemByCtl Method}}
 +
{{#parentPage:PXV:IUIX_CmdBar#Methods|FindItemByCtl|method}}
 +
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Searches for the first command item in the command bar's command item boxes by the correspondent command's sub-control.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT FindItemByCtl([in] IUIX_Obj* pCtl, [out, retval] IUIX_CmdItem** ppItem);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT FindItemByCtl([in]           IUIX_Obj*       pCtl,
 +
                      [out, retval] IUIX_CmdItem** pItem);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''pCtl''
+
;pCtl
:[in]  Pointer to [[PXV:IUIX_Obj|IUIX_Obj]].
+
:[in]  Pointer to [[PXV:IUIX_Obj|IUIX_Obj]] containing the command's sub-control that will be used to find first correspondent command item.
;''ppItem''
+
;pItem
:[out, retval]  Pointer to [[PXV:IUIX_CmdItem|IUIX_CmdItem]].
+
:[out, retval]  Pointer to [[PXV:IUIX_CmdItem|IUIX_CmdItem]] containing the index of the correspondent item. If no command was found then -1 will be returned.
  
 
== Return Value ==
 
== Return Value ==
Line 17: Line 21:
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IUIX_CmdBar|IUIX_CmdBar]].
+
[[PXV:IUIX_CmdBar|IUIX_CmdBar]]

Latest revision as of 03:42, 25 March 2016


Searches for the first command item in the command bar's command item boxes by the correspondent command's sub-control.

Syntax

HRESULT FindItemByCtl([in]           IUIX_Obj*       pCtl,
                      [out, retval]  IUIX_CmdItem**  pItem);

Parameters

pCtl
[in] Pointer to IUIX_Obj containing the command's sub-control that will be used to find first correspondent command item.
pItem
[out, retval] Pointer to IUIX_CmdItem 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_CmdBar