IUIX_CmdMenu::FindFirstCmd Method

From PDF XChange PDF SDK
Revision as of 07:40, 31 March 2016 by Palamar (Talk | contribs)

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


Finds command menu item by the given command ID.

Syntax

HRESULT FindFirstCmd([in]                    LONG          nCmdID,
                     [in, defaultvalue(-1)]  VARIANT_BOOL  bRecursive,
                     [out, retval]           IUIX_Cmd**    pCmd);

Parameters

nCmdID
[in] Value of LONG containing the command ID by which the corresponding command menu item should be searched for.
bRecursive
[in, defaultvalue(-1)] Value of VARIANT_BOOL representing whether the search should be done recursively.
pCmd
[out, retval] Pointer to IUIX_Cmd containing the resulting command.

Return Value

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

See Also

IUIX_CmdMenu