📄 drawexamview.h
字号:
// DrawExamView.h : interface of the CDrawExamView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_DRAWEXAMVIEW_H__FC43B299_3C2D_474D_9C0D_1E549623B801__INCLUDED_)
#define AFX_DRAWEXAMVIEW_H__FC43B299_3C2D_474D_9C0D_1E549623B801__INCLUDED_
#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
class CDrawExamView : public CView
{
protected: // create from serialization only
CDrawExamView();
DECLARE_DYNCREATE(CDrawExamView)
// Attributes
public:
CDrawExamDoc* GetDocument();
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDrawExamView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CDrawExamView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CDrawExamView)
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnPaint();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
void DrawLine(CPoint firstPoint,CPoint lastPoint,CPoint currentPoint);
DWORD m_drawID;
CPoint m_firstPoint;
CPoint m_lastPoint;
bool m_bBeginDraw;
COLORREF m_frontColor;
COLORREF m_backColor;
CDC m_oldDC;
CBitmap m_oldBmp;
//设置绘图设备环境
CDC m_tmpDC;
CBitmap m_tmpBmp;
};
#ifndef _DEBUG // debug version in DrawExamView.cpp
inline CDrawExamDoc* CDrawExamView::GetDocument()
{ return (CDrawExamDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft eMbedded Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DRAWEXAMVIEW_H__FC43B299_3C2D_474D_9C0D_1E549623B801__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -