IUIX_Cmd::AddShortcut Method

From PDF XChange PDF SDK
Revision as of 01:39, 24 March 2016 by Palamar (Talk | contribs)

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


Adds new single shortcut to the command's shortcuts list. If the current combination is already inside the commands list with the same priority then it will be replaced.

Syntax

HRESULT AddShortcut([in]                    UIX_CmdAccel*  stA,
                    [in, defaultvalue(-1)]  LONG           nPriority);

Parameters

stA
[in] Pointer to UIX_CmdAccel containing the key combination.
nPriority
[in, defaultvalue(-1)] Value of LONG containing the command's priority that acts as the index in the shortcuts list.

Return Value

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

See Also

IUIX_Cmd