Implement A New Command

Case Study: DeselectAll

This is a very simple command that performs a very specific action and then terminates. This command clears the select buffer regardless of its current contents.

Source Code

Please download the following source code for each example.

Explanation

This command is separated into three key sections:

Header/Includes

The header and includes determine the module to which the command is linked and the module responsible for presenting the command. The command header and includes are as follows:

This is a picture of the command header.

Command Declaration

The command declaration registers the command as a "command" and contains a GUID used by the shell to distinguish the command from all others. The command declaration is as follows:

This is a picture of the command declaration.

Command Implementation

The command Implementation implements the command. The command implementation is as follows:

This is a picture of the command implementation.