Home Page (Add-ins) | Overview | How Do I ... Topics | FAQ | Reference
The user can carry out an add-in command by using a key sequence assigned to the command. The user can assign this key sequence through the user interface, or you can assign it programmatically.
To assign a key sequence programmatically
The bFirstTime parameter directs Developer Studio to call AddKeyBinding only when the user first connects the add-in to the development environment.
Caution Unless key sequences are necessary, do not add them because they might replace existing ones. For example, if a keystroke is assigned to a command and you assign the same keystroke to another command, your new assignment replaces the original. For best results, let the user assign key sequences to the commands added by an add-in.
Additionally, Visual C++ provides other ways of using key sequences to customize your desktop environment. For details, see Overview: Customizing Visual C++.
See Also Assigning Key Sequences to Add-in Commands Visually, Creating Toolbar Buttons for Add-in Commands Programmatically