Building and Running Container Step 1

Build Container Step 1. When it compiles and links successfully, run the program. Here are some things to try:

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.