IUIX_CmdMenu::FindFirstItemByCmdName Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(4 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IUIX_CmdMenu::FindFirstItemByCmdName Method}}
 
{{#customTitle:IUIX_CmdMenu::FindFirstItemByCmdName Method}}
{{#parentPage:PXV:IUIX_CmdMenu|FindFirstItemByCmdName Method|method}}
+
{{#parentPage:PXV:IUIX_CmdMenu#Methods|FindFirstItemByCmdName|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 name.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT FindFirstItemByCmdName([in]          BSTR  pCmdName,
+
<pre class="brush:cpp;gutter:false">HRESULT FindFirstItemByCmdName([in]          BSTR  sCmdName,
                               [out, retval]  LONG*  pIndex);</pre>
+
                               [out, retval]  LONG*  nIndex);</pre>
  
 
== Parameters ==
 
== Parameters ==
;pCmdName
+
;sCmdName
:[in]  Value of BSTR.
+
:[in]  Value of BSTR containing the command name that corresponds to the command menu item.
;pIndex
+
;nIndex
:[out, retval]  Pointer to LONG.
+
:[out, retval]  Pointer to LONG containing the resulting item index.
  
 
== Return Value ==
 
== Return Value ==
Line 22: Line 21:
  
 
== See Also ==
 
== See Also ==
[[PXV:IUIX_CmdMenu|IUIX_CmdMenu]].
+
[[PXV:IUIX_CmdMenu|IUIX_CmdMenu]]

Latest revision as of 07:18, 1 April 2016


Finds first occurrence of the menu item that corresponds to the given command name.

Syntax

HRESULT FindFirstItemByCmdName([in]           BSTR   sCmdName,
                               [out, retval]  LONG*  nIndex);

Parameters

sCmdName
[in] Value of BSTR containing the command name that corresponds to the command menu item.
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