IPXV_Inst::ExecUICmd Method

From PDF XChange PDF SDK
Revision as of 07:31, 12 June 2015 by Dsbot (Talk | contribs) (Automatic page editing by robot)

Jump to: navigation, search


Executes the UI-command.

Syntax

HRESULT ExecUICmd([in]                      BSTR       CmdID,
                  [in, defaultvalue(NULL)]  IUIX_Obj*  Owner);

Parameters

CmdID
[in] String unique identifier of UI-command.
Owner
[in, defaultvalue(NULL)] The optional pointer to IUIX_Obj that species context of executing. For example, if you have two main frames then executing:
ExecUICmd("cmd.document.printPages", NULL); - will show print print dialog for active document inside active frame;
ExecUICmd("cmd.document.printPages", mainFrm1.Obj); - will show print print dialog for active document inside first frame;
ExecUICmd("cmd.document.printPages", mainFrm2.Obj); - will show print print dialog for active document inside second frame;

Return Value

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

See Also

IPXV_Inst, IPXV_Inst::ExecUICmd2