IUIX_CmdMenu::SetSubMenu Method

From PDF XChange PDF SDK
Revision as of 07:44, 1 April 2016 by Palamar (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


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