📄 ex4_3view.h
字号:
// Ex4_3View.h : interface of the CEx4_3View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_EX4_3VIEW_H__0EA903FE_BEE7_4C4A_879C_C5ED35DCD229__INCLUDED_)
#define AFX_EX4_3VIEW_H__0EA903FE_BEE7_4C4A_879C_C5ED35DCD229__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CEx4_3View : public CView
{
protected: // create from serialization only
CEx4_3View();
DECLARE_DYNCREATE(CEx4_3View)
// Attributes
public:
CEx4_3Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEx4_3View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
BOOL m_Enable;
BOOL m_Shape;
virtual ~CEx4_3View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CEx4_3View)
afx_msg void OnDrawEnable();
afx_msg void OnDrawDisable();
afx_msg void OnUpdateDrawRect(CCmdUI* pCmdUI);
afx_msg void OnUpdateDrawCircle(CCmdUI* pCmdUI);
afx_msg void OnUpdateDrawEnable(CCmdUI* pCmdUI);
afx_msg void OnUpdateDrawDisable(CCmdUI* pCmdUI);
afx_msg void OnDrawRect();
afx_msg void OnDrawCircle();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Ex4_3View.cpp
inline CEx4_3Doc* CEx4_3View::GetDocument()
{ return (CEx4_3Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EX4_3VIEW_H__0EA903FE_BEE7_4C4A_879C_C5ED35DCD229__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -