zcr14paintdoc.h

来自「一个画笔的程序,可以进行直线,圆和方形等图形进行画图,并可以撤消上一步的动作」· C头文件 代码 · 共 78 行

H
78
字号
// ZCR14PaintDoc.h : interface of the CZCR14PaintDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_ZCR14PAINTDOC_H__055B8FB9_A8B5_439C_B02D_B30FCE63EFDD__INCLUDED_)
#define AFX_ZCR14PAINTDOC_H__055B8FB9_A8B5_439C_B02D_B30FCE63EFDD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "ZCR14list.h"


class CZCR14PaintDoc : public CDocument
{
protected: // create from serialization only
	CZCR14PaintDoc();
	DECLARE_DYNCREATE(CZCR14PaintDoc)

// Attributes
public: 
	//CZCR14List m_zcr14lst;
	CZCR14List m_lstUndo;
	CZCR14List m_lstShape;
    CString strPathName;
	CString m_strFileName;

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CZCR14PaintDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	void SetSavedShapeCount();
	BOOL FileIsExist(CString strPathName);
	void SetStateSaved ();
	void SetStateModified ();
	void SetStateBlank ();
	int GetState();
	enum SYS_STATE { STATE_BLANK=0, STATE_MODIFIED, STATE_SAVED};

	CString GetFilePostfix(CString cstrPathName);
	virtual ~CZCR14PaintDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	int m_savedShapeCount;
	SYS_STATE  m_emState;
// Generated message map functions
public:
	void DeleteContents();

	//{{AFX_MSG(CZCR14PaintDoc)
	afx_msg void OnFileSaveAs();
	afx_msg void OnFileSave();
	afx_msg void OnEditUndo();
	afx_msg void OnFileRedo();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_ZCR14PAINTDOC_H__055B8FB9_A8B5_439C_B02D_B30FCE63EFDD__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?