IUIX_CmdMenu::FindFirstItemByCmdID Method

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

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


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

Syntax

HRESULT FindFirstItemByCmdID([in]                   LONG          nCmdID,
                             [in, defaultvalue(0)]  VARIANT_BOOL  bReversed,
                             [out, retval]          LONG*         nIndex);

Parameters

nCmdID
[in] Value of LONG containing the command ID that corresponds to the command menu item.
bReversed
[in, defaultvalue(0)] Value of VARIANT_BOOL representing whether the search should be done in reversed order.
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