sketcherview.h
来自「Visual C++ 2005的源代码」· C头文件 代码 · 共 66 行
H
66 行
// 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 + =
减小字号Ctrl + -
显示快捷键?