📄 sketcherview.h
字号:
// SketcherView.h : interface of the CSketcherView class
//
#pragma once
class CElement; // Forward class declaration
//#include "atltypes.h"
class CSketcherView : public CView
{
protected: // create from serialization only
CSketcherView();
DECLARE_DYNCREATE(CSketcherView)
// Attributes
public:
CSketcherDoc* GetDocument() const;
// Operations
public:
// Overrides
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);
// Implementation
public:
virtual ~CSketcherView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
DECLARE_MESSAGE_MAP()
public:
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
public:
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
public:
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
protected:
// First point recorded for an element
CPoint m_FirstPoint;
CPoint m_SecondPoint;
// Pointer to a temporary element
CElement* m_pTempElement;
// Create a new element on the heap
CElement* CreateElement(void);
};
#ifndef _DEBUG // debug version in SketcherView.cpp
inline CSketcherDoc* CSketcherView::GetDocument() const
{ return reinterpret_cast<CSketcherDoc*>(m_pDocument); }
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -