📄 ex_a7view.h
字号:
// Ex_A7View.h : interface of the CEx_A7View class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_EX_A7VIEW_H__D8E41E14_7002_419E_BAEB_83D2BF49DA68__INCLUDED_)
#define AFX_EX_A7VIEW_H__D8E41E14_7002_419E_BAEB_83D2BF49DA68__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CEx_A7View : public CView
{
public:
BOOL m_bCursorFirst; // 光标第一次显示标志
CPoint m_ptPrevPos; // 上一个点的坐标
CPoint m_ptCurPos; // 当前点的坐标
CDC m_dcMem; // 定义用于内存环境的设备变量
CBitmap *m_oldBmp; // 用于内存的位图指针
BOOL m_bLineStart; // 用来判断画线是否开始
CStringArray m_strCmdArray; // 用于保存当前绘图命令
protected: // create from serialization only
CEx_A7View();
DECLARE_DYNCREATE(CEx_A7View)
// Attributes
public:
CEx_A7Doc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEx_A7View)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
//}}AFX_VIRTUAL
// Implementation
public:
void DrawXORLine( CDC *pDC, CPoint pt1, CPoint pt2 );
void DrawPointFlag( CDC *pDC, CPoint pt );
void DrawInfoWnd( CDC *pDC, CPoint pt, CString strInfo );
void DrawCursor( CDC *pDC, CPoint pt );
virtual ~CEx_A7View();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CEx_A7View)
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in Ex_A7View.cpp
inline CEx_A7Doc* CEx_A7View::GetDocument()
{ return (CEx_A7Doc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EX_A7VIEW_H__D8E41E14_7002_419E_BAEB_83D2BF49DA68__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -