// SquaresDoc.h : interface of the CSquaresDoc class // ///////////////////////////////////////////////////////////////////////////// #if !defined(AFX_SQUARESDOC_H__36D513E3_9CA0_11D2_8E53_006008A82731__INCLUDED_) #define AFX_SQUARESDOC_H__36D513E3_9CA0_11D2_8E53_006008A82731__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 class CSquaresDoc : public CDocument { protected: // create from serialization only CSquaresDoc(); DECLARE_DYNCREATE(CSquaresDoc) // Attributes public: // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CSquaresDoc) public: virtual BOOL OnNewDocument(); virtual void Serialize(CArchive& ar); //}}AFX_VIRTUAL // Implementation public: void SetSquare (int i, int j, COLORREF color); COLORREF GetSquare (int i, int j); COLORREF GetCurrentColor(); virtual ~CSquaresDoc(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: COLORREF m_clrCurrentColor; COLORREF m_clrGrid[4][4]; //{{AFX_MSG(CSquaresDoc) afx_msg void OnColorRed(); afx_msg void OnColorYellow(); afx_msg void OnColorGreen(); afx_msg void OnColorCyan(); afx_msg void OnColorBlue(); afx_msg void OnColorWhite(); afx_msg void OnUpdateColorRed(CCmdUI* pCmdUI); afx_msg void OnUpdateColorYellow(CCmdUI* pCmdUI); afx_msg void OnUpdateColorGreen(CCmdUI* pCmdUI); afx_msg void OnUpdateColorCyan(CCmdUI* pCmdUI); afx_msg void OnUpdateColorBlue(CCmdUI* pCmdUI); afx_msg void OnUpdateColorWhite(CCmdUI* pCmdUI); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; ///////////////////////////////////////////////////////////////////////////// //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_SQUARESDOC_H__36D513E3_9CA0_11D2_8E53_006008A82731__INCLUDED_)