treedoc.h

来自「API经典入门」· C头文件 代码 · 共 58 行

H
58
字号
// treedoc.h : interface of the CTreeDoc class
//
/////////////////////////////////////////////////////////////////////////////

#include "dibitmap.h"

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

// Attributes
public:
	CTreeSet m_treeSet;
	CDIBitmap m_bmPortrait; // temporary bitmap storage

// Operations
public:
	void EditCurrentPerson();
	double GetUniqueRandomID();
	BOOL MoveTo (double ID);

// Implementation
public:
	virtual ~CTreeDoc();
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	virtual BOOL OnNewDocument();

// Generated message map functions
protected:
	//{{AFX_MSG(CTreeDoc)
	afx_msg void OnInfoRecordset();
	afx_msg void OnInfoPerson();
	afx_msg void OnUpdateRecordEdit(CCmdUI* pCmdUI);
	afx_msg void OnRecordEdit();
	afx_msg void OnRecordAdd();
	afx_msg void OnUpdateRecordAdd(CCmdUI* pCmdUI);
	afx_msg void OnRecordDelete();
	afx_msg void OnUpdateRecordDelete(CCmdUI* pCmdUI);
	afx_msg void OnPortraitLoadfromfile();
	afx_msg void OnUpdatePortraitLoadfromfile(CCmdUI* pCmdUI);
	afx_msg void OnPortraitDelete();
	afx_msg void OnUpdatePortraitDelete(CCmdUI* pCmdUI);
	afx_msg void OnPortraitSavetofile();
	afx_msg void OnUpdatePortraitSavetofile(CCmdUI* pCmdUI);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

⌨️ 快捷键说明

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