2.5.3 Isolating Document- and Object-Specific Data

Information that is global between documents or document windows can also be isolated into a data structure, or it can be attached to each document window. Data isolated into a structure is easily folded into an OLESERVERDOC data structure that holds the OLE-specific data for each document. Also, by isolating this data and always referencing it with a pointer, changing where the structure resides is a simple matter of changing the name of the pointer from which you reference the variable.

In the same manner used to isolate document-specific data, you can also isolate object-specific data that can be folded into your application-defined OLEOBJECT structure.