Communication Document Classes
Two classes, SECComDoc and SECDocManager, implement the general ComDoc system. A third class, CGraphDoc, is derived from SECComDoc to provide functions for communicating data related to charts.
The ComDoc system is described in more detail in Chapter 20 Communication Document System
SECComDoc
SECComDoc extends the standard MFC CDocument class to support communication between linked documents. It maintains as list of linked documents and a pointer to its parent document, if it is a child document.
SECComDoc also includes several functions that enable documents to pass messages to one another. SECComDoc defines the format of these messages, but the meaning and functions that the messages transmit are left open.
CGraphDoc
CGraphDoc is a special derivation of the SECComDoc class that handles document linking. It contains the SRGraph data member, m_Graph, which stores the chart data. This document type is a partner to the SRGraphView view class. It also handles SRGraph serialization.
CGraphDoc also defines several message codes to pass information related to chart data values, annotations, and scope.
SECDocManager
This derivation of the standard CDocManager class has special functions to facilitate the document linking process. Your applications should use this SECDocManager class instead of the CDocManager if you want to enable document linking.






