home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / mfc / general / mdidocvw / hellodoc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-27  |  1.6 KB  |  68 lines

  1. // HelloDoc.h : interface of the CHelloDoc class
  2. //
  3.  
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992-1998 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and related
  10. // electronic documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14. /////////////////////////////////////////////////////////////////////////////
  15.  
  16. class CHelloDoc : public CDocument
  17. {
  18. protected: // create from serialization only
  19.     CHelloDoc();
  20.     DECLARE_DYNCREATE(CHelloDoc)
  21.  
  22. // Attributes
  23. public:
  24.     // hello window color/text parameters
  25.     COLORREF m_clrText;
  26.     CString m_str;
  27.  
  28.     //state of color buttons
  29.     BOOL m_bBlack;
  30.     BOOL m_bRed;
  31.     BOOL m_bBlue;
  32.     BOOL m_bGreen;
  33.     BOOL m_bWhite;
  34.     BOOL m_bCustom;
  35.  
  36. // Operations
  37. public:
  38.     void ClearAllColors();  //resets all color states to NULL
  39.     void SetStrColor(COLORREF clr);
  40.     void SetCustomStrColor(COLORREF clr);
  41.  
  42. // Overrides
  43.     // ClassWizard generated virtual function overrides
  44.     //{{AFX_VIRTUAL(CHelloDoc)
  45.     public:
  46.     virtual BOOL OnNewDocument();
  47.     virtual void Serialize(CArchive& ar);
  48.     //}}AFX_VIRTUAL
  49.  
  50. // Implementation
  51. public:
  52.     virtual ~CHelloDoc();
  53. #ifdef _DEBUG
  54.     virtual void AssertValid() const;
  55.     virtual void Dump(CDumpContext& dc) const;
  56. #endif
  57.  
  58. protected:
  59.  
  60. // Generated message map functions
  61. protected:
  62.     //{{AFX_MSG(CHelloDoc)
  63.     //}}AFX_MSG
  64.     DECLARE_MESSAGE_MAP()
  65. };
  66.  
  67. /////////////////////////////////////////////////////////////////////////////
  68.