Called to create the keyboard accelerators for this extension.
[Visual Basic .NET] Public Sub CreateAccelerators ( _ )
[C#] public void CreateAccelerators ( );
[C++] HRESULT CreateAccelerators( void );
The CreateAccelerators method creates the accelerators for the extension. This method is called when the accelerator table is created during application startup, when a new document is created, or when a document is opened.
When you use the CreateAccelerators method to assign an accelerator to one of the commands in your extension, you should check to make sure that no other command is currently using the key combination that you want to use.