Build Container Step 1. When it compiles and links successfully, run the program. Here are some things to try:
Notice that the Scribble object initially has a size of (10, 10, 50, 50), as determined by the CContainerItem
constructor. Container does not consult the server about the initial size of the object.
Selection now works, and the cursor changes to a four-way arrow over the object.
Rectangle tracking is now working.
At this point you can try to insert linked items:
You will see that the item now has a dashed border, and that double-clicking the item opens it instead of activating it, as would be expected from linked items.
This completes Step 1 of Container. In the next lesson, Refining OLE Container Functionality, you will add the Copy and Paste commands to the Edit menu, implement smart invalidation, and implement better coordination with the server to determine the size of contained objects.