IUIX_CmdMenu::SetSubMenu 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_CmdMenu::SetSubMenu Method}}
 
{{#customTitle:IUIX_CmdMenu::SetSubMenu Method}}
 +
{{#parentPage:PXV:IUIX_CmdMenu#Methods|SetSubMenu|method}}
 +
{{ToReview}}
  
The method of interface of PDF-XChange Editor SDK.
+
Sets command menu's command item's sub-menu.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT SetSubMenu([in] LONG nCmdID, IUIX_CmdMenu* pSrcMenu, [in, optional] VARIANT_BOOL bRecursive);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT SetSubMenu([in]                   LONG           nCmdID,
 +
                                          IUIX_CmdMenu* pSrcMenu,
 +
                  [in, defaultvalue(0)] VARIANT_BOOL   bRecursive);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''nCmdID''
+
;nCmdID
:[in]  Value of LONG.
+
:[in]  Value of LONG containing the command ID by which the corresponding command menu item will be found.
;''pSrcMenu''
+
;pSrcMenu
: Pointer to [[PXV:IUIX_CmdMenu|IUIX_CmdMenu]].
+
: Pointer to [[PXV:IUIX_CmdMenu|IUIX_CmdMenu]] containing the command menu that needs to be added as a sub-menu.
;''bRecursive''
+
;bRecursive
:[in, optional]  Value of VARIANT_BOOL.
+
:[in, defaultvalue(0)]  Value of VARIANT_BOOL indicating whether the search for the corresponding command menu item should be recursive.
  
 
== Return Value ==
 
== Return Value ==
Line 19: Line 24:
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IUIX_CmdMenu|IUIX_CmdMenu]].
+
[[PXV:IUIX_CmdMenu|IUIX_CmdMenu]]

Latest revision as of 07:44, 1 April 2016


Sets command menu's command item's sub-menu.

Syntax

HRESULT SetSubMenu([in]                   LONG           nCmdID,
                                          IUIX_CmdMenu*  pSrcMenu,
                   [in, defaultvalue(0)]  VARIANT_BOOL   bRecursive);

Parameters

nCmdID
[in] Value of LONG containing the command ID by which the corresponding command menu item will be found.
pSrcMenu
Pointer to IUIX_CmdMenu containing the command menu that needs to be added as a sub-menu.
bRecursive
[in, defaultvalue(0)] Value of VARIANT_BOOL indicating whether the search for the corresponding command menu item should be recursive.

Return Value

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

See Also

IUIX_CmdMenu