IUIX_CmdMenu::DeepFindFirstItemByCmdID Method

From PDF XChange PDF SDK
Jump to: navigation, search


Recursively finds owner command menu and index of the menu item inside of it that corresponds to the given command ID.

Syntax

HRESULT DeepFindFirstItemByCmdID([in]   LONG            nCmdID,
                                 [out]  LONG*           nIndex,
                                 [out]  IUIX_CmdMenu**  pOwner);

Parameters

nCmdID
[in] Value of LONG containing the command ID that needs to be searched for.
nIndex
[out] Pointer to LONG containing the index of the item in the owner command menu.
pOwner
[out] Pointer to IUIX_CmdMenu containing the owner command menu.

Return Value

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

See Also

IUIX_CmdMenu