RegisterCommand
Method of IApplication
Description
Register new command
Parameters
- ICommandHandler pCommandHandler
- BSTR strShortcut = "" (optional)
Return Value
- long pnID
Syntax
JavaScript
var pnID = Application.RegisterCommand(pCommandHandler, strShortcut);
Visual Basic Script
pnID = Application.RegisterCommand pCommandHandler, strShortcut
C++
long nID; HRESULT hr = Application.RegisterCommand(pCommandHandler, strShortcut, &nID);