Figure 14
shows the GrafEdit commands derived from TCommandOn<MCanvasSelection>. TCommandOn<MCanvasSelection> is a Document framework template class. At run time, derived classes of TCommandOn<MCanvasSelection> change the graphics in the representation that are defined by the selection. TChangeCanvasGraphicCmd derived classes are concrete classes for changing canvas graphics. You can derive from TChangeCanvasGraphicCmd to write your own custom command.The commands shown in Figure 14 are the most common commands for manipulating and setting attributes of canvas graphics. These commands can be used without any modification on your part, support undo and redo, and operate on the current MCanvasSelection. Any of these commands can be used in any GrafEdit program regardless of the derived canvas representation and selection in use.