drawdoc.h
来自「< MFC经典问答>>是微软类库经常遇到的问题」· C头文件 代码 · 共 53 行
H
53 行
// DrawDoc.h : interface of the CDrawDoc class
//
/////////////////////////////////////////////////////////////////////////////
class CDrawDoc : public CDocument
{
protected: // create from serialization only
CDrawDoc();
DECLARE_DYNCREATE(CDrawDoc)
// Attributes
public:
CPoint m_point;
enum SHAPE { SQUARE = 0, CIRCLE = 1 } m_shape;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDrawDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CDrawDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CDrawDoc)
afx_msg void OnDrawSquare();
afx_msg void OnDrawCircle();
afx_msg void OnUpdateDrawSquare(CCmdUI* pCmdUI);
afx_msg void OnUpdateDrawCircle(CCmdUI* pCmdUI);
afx_msg void OnWindowNewView();
afx_msg void OnWindowNewFormView();
afx_msg void OnWindowNewSplitter();
afx_msg void OnWindowNewSplitter2();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?