Adopting canvas graphics
Figure 32 shows the functions for adopting canvas graphics. Clients of MCanvasRepresentation can adopt canvas graphics at the front (closest to the viewer), at the back, after, or before a designated graphic that is already in the representation.
The AdoptAtFront and AdoptAtBack functions take the canvas graphic ID of the canvas graphic to be adopted. The AdoptAfter and AdoptBefore functions take the canvas graphic ID of the graphic to be adopted, and the canvas graphic ID of the designated graphic already in the representation. The AdoptAfter function declaration is shown here.
virtual void AdoptAfter( const TCanvasGraphicID& existing,
MCanvasGraphic* toBeAdopted ) = 0;
If your program is a Basic Document framework application, you might use an MCanvasRepresentation derived class such as TCanvasGraphicDeque adopts the canvas graphics. If your program is a Compound Document framework program, TStandardCanvasModel adopts the canvas graphics.
Figure 33 shows that a representation also knows and owns an MCanvasGraphic.
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.
Generated with WebMaker