📄 demo3view.h
字号:
// Demo3View.h : interface of the CDemo3View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_Demo3VIEW_H__D9D566AD_FFD3_11D3_BB17_00104BC71186__INCLUDED_)
#define AFX_Demo3VIEW_H__D9D566AD_FFD3_11D3_BB17_00104BC71186__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define FRESHVIEWTIMER_ID 1
#define FRESHVIEWTIMER_TIME 2000
class CDemo3View : public CView
{
protected: // create from serialization only
CDemo3View();
DECLARE_DYNCREATE(CDemo3View)
// Attributes
public:
CDemo3Doc* GetDocument();
// Operations
public:
long m_nMouseMode;
bool m_bMapMoving;
CPoint m_ptOldPoint, m_ptOldPoint1;
HCURSOR m_hcurHand;
HCURSOR m_hcurArrow;
HCURSOR m_hcurZoomIn;
HCURSOR m_hcurZoomOut;
HCURSOR m_hcurCross;
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDemo3View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual BOOL Create(LPCTSTR lpszClassName, LPCTSTR lpszWindowName, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext = NULL);
virtual BOOL DestroyWindow();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnPrint(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CDemo3View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CDemo3View)
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnZoomin();
afx_msg void OnZoomout();
afx_msg void OnMoving();
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnUpdateMenuitemLayer1(CCmdUI* pCmdUI);
afx_msg void OnUpdateMenuitemLayer2(CCmdUI* pCmdUI);
afx_msg void OnUpdateMenuitemLayer3(CCmdUI* pCmdUI);
afx_msg void OnUpdateMenuitemLayer4(CCmdUI* pCmdUI);
afx_msg void OnMenuitemLayer1();
afx_msg void OnMenuitemLayer2();
afx_msg void OnMenuitemLayer3();
afx_msg void OnMenuitemLayer4();
afx_msg void OnFileClose();
afx_msg void OnUpdateMoving(CCmdUI* pCmdUI);
afx_msg void OnUpdateZoomin(CCmdUI* pCmdUI);
afx_msg void OnUpdateZoomout(CCmdUI* pCmdUI);
afx_msg void OnUpdateArrow(CCmdUI* pCmdUI);
afx_msg void OnArrow();
afx_msg void OnTemporary();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnUpdateDyna0(CCmdUI* pCmdUI);
afx_msg void OnUpdateDyna1(CCmdUI* pCmdUI);
afx_msg void OnUpdateDyna2(CCmdUI* pCmdUI);
afx_msg void OnUpdateDyna3(CCmdUI* pCmdUI);
afx_msg void OnDyna0();
afx_msg void OnDyna1();
afx_msg void OnDyna2();
afx_msg void OnDyna3();
afx_msg void OnUpdateCalculate(CCmdUI* pCmdUI);
afx_msg void OnCalculate();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Demo3View.cpp
inline CDemo3Doc* CDemo3View::GetDocument()
{ return (CDemo3Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_Demo3VIEW_H__D9D566AD_FFD3_11D3_BB17_00104BC71186__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -