📄 vecdrawview.h
字号:
// VecDrawView.h : interface of the CVecDrawView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_VECDRAWVIEW_H__B15F9BD2_A143_4F62_89EE_AF4639C36751__INCLUDED_)
#define AFX_VECDRAWVIEW_H__B15F9BD2_A143_4F62_89EE_AF4639C36751__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
class CVecDrawView : public CView
{
protected: // create from serialization only
int m_DrawCurrent,m_PushNumb,m_Draging;
int saveType,saveIndex;
int SaveFlag;
CPoint prePoint,lastPoint;
CVecDrawView();
DECLARE_DYNCREATE(CVecDrawView)
// Attributes
public:
CDraw *pCurDraw;
CVecDrawDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CVecDrawView)
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:
virtual ~CVecDrawView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CVecDrawView)
afx_msg void OnbDrawLine();
afx_msg void OnbCircleFill();
afx_msg void OnbDrawCircle();
afx_msg void OnbDrawRect();
afx_msg void OnbDrawRectRound();
afx_msg void OnbRectFill();
afx_msg void OnbRectRoundFill();
afx_msg void OnbSelectObject();
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnbText();
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnbtnSerial();
afx_msg void OnbReDraw();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in VecDrawView.cpp
inline CVecDrawDoc* CVecDrawView::GetDocument()
{ return (CVecDrawDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_VECDRAWVIEW_H__B15F9BD2_A143_4F62_89EE_AF4639C36751__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -