IUIX_CmdCollection::AddNew Method
From PDF XChange PDF SDK
Adds new command to the command collection by the given command ID.
Syntax
HRESULT AddNew([in] BSTR sID, [in] BSTR sTargetID, [in] IUIX_CmdHandler* pHandler, [out, retval] IUIX_Cmd** pNewCmd);
Parameters
- sID
- [in] Value of BSTR containing the command's ID.
- sTargetID
- [in] Value of BSTR containing the target's ID.
- pHandler
- [in] Pointer to IUIX_CmdHandler containing the command's handler.
- pNewCmd
- [out, retval] Pointer to IUIX_Cmd containing the newly added command.
Return Value
Returns S_OK if operation was successful or error code in other cases.