home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK8 / MFC / SAMPLES / CHART / DOBJECT.H$ / dobject
Encoding:
Text File  |  1992-03-18  |  1.3 KB  |  55 lines

  1. // dobject.h : Declares Chart data object classes.
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library. 
  4. // Copyright (C) 1992 Microsoft Corporation 
  5. // All rights reserved. 
  6. //  
  7. // This source code is only intended as a supplement to the 
  8. // Microsoft Foundation Classes Reference and Microsoft 
  9. // QuickHelp documentation provided with the library. 
  10. // See these sources for detailed information regarding the 
  11. // Microsoft Foundation Classes product.
  12. //
  13.  
  14. #ifndef __DOBJECT_H__
  15. #define __DOBJECT_H__
  16.  
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CChartData
  19. // One data point for the chart.
  20.  
  21. class CChartData : public CObject
  22. {
  23.     DECLARE_SERIAL(CChartData)
  24.  
  25. public:
  26.     short  height;
  27.     char   szName[40];
  28.  
  29.     void Serialize(CArchive&);
  30. };
  31.  
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CChartObject
  34.  
  35. class CChartObject : public CObject
  36. {
  37.     DECLARE_SERIAL(CChartObject)
  38.  
  39. public:
  40.  
  41.     CString m_Title;
  42.     CObList* m_pChartData;
  43.     WORD m_nType;
  44.     BOOL m_bDirty;
  45.     
  46.     CChartObject();
  47.     ~CChartObject();
  48.     void Serialize(CArchive&);
  49.     void RemoveAll();
  50. };
  51.  
  52. /////////////////////////////////////////////////////////////////////////////
  53.  
  54. #endif // __DOBJECT_H__
  55.