Day10Doc.h
上传用户:z_mail1980
上传日期:2007-06-01
资源大小:647k
文件大小:2k
- // Day10Doc.h : interface of the CDay10Doc class
- //
- /////////////////////////////////////////////////////////////////////////////
- #include "Line.h"
- #if !defined(AFX_DAY10DOC_H__88EDB410_A592_4214_A46A_97BEB022DB8A__INCLUDED_)
- #define AFX_DAY10DOC_H__88EDB410_A592_4214_A46A_97BEB022DB8A__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CDay10Doc : public CDocument
- {
- protected: // create from serialization only
- CDay10Doc();
- DECLARE_DYNCREATE(CDay10Doc)
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDay10Doc)
- public:
- virtual BOOL OnNewDocument();
- virtual void Serialize(CArchive& ar);
- virtual void DeleteContents();
- //}}AFX_VIRTUAL
- // Implementation
- public:
- UINT GetColor();
- static const COLORREF m_crColors[8];
- CLine* GetLine(int nIndex);
- int GetLineCount();
- CLine* AddLine(CPoint ptFrom,CPoint ptTo);
- virtual ~CDay10Doc();
- #ifdef _DEBUG
- virtual void AssertValid() const;
- virtual void Dump(CDumpContext& dc) const;
- #endif
- private:
- UINT m_nColor;
- CObArray m_oaLines;
- protected:
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDay10Doc)
- afx_msg void OnColorBlack();
- afx_msg void OnUpdateColorBlack(CCmdUI* pCmdUI);
- afx_msg void OnColorBlue();
- afx_msg void OnUpdateColorBlue(CCmdUI* pCmdUI);
- afx_msg void OnUpdateColorCyan(CCmdUI* pCmdUI);
- afx_msg void OnColorCyan();
- afx_msg void OnColorGreen();
- afx_msg void OnUpdateColorGreen(CCmdUI* pCmdUI);
- afx_msg void OnColorMagenta();
- afx_msg void OnUpdateColorMagenta(CCmdUI* pCmdUI);
- afx_msg void OnColorRed();
- afx_msg void OnUpdateColorRed(CCmdUI* pCmdUI);
- afx_msg void OnColorWhite();
- afx_msg void OnUpdateColorWhite(CCmdUI* pCmdUI);
- afx_msg void OnColorYellow();
- afx_msg void OnUpdateColorYellow(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_DAY10DOC_H__88EDB410_A592_4214_A46A_97BEB022DB8A__INCLUDED_)