?? sketcherview.h
字號:
// sketcherView.h : CsketcherView 類的接口
//
#pragma once
class CEle;
class CsketcherView : public CView
{
protected: // 僅從序列化創(chuàng)建
CsketcherView();
DECLARE_DYNCREATE(CsketcherView)
// 屬性
public:
CsketcherDoc* GetDocument() const;
// 操作
public:
// 重寫
public:
virtual void OnDraw(CDC* pDC); // 重寫以繪制該視圖
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);
// 實現(xiàn)
public:
virtual ~CsketcherView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函數(shù)
protected:
DECLARE_MESSAGE_MAP()
CEle* m_pTempEle;
public:
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
protected:
CPoint m_FirPo;
CPoint m_SecPo;
public:
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
public:
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
protected:
CEle* CreateEle(void);
};
#ifndef _DEBUG // sketcherView.cpp 中的調(diào)試版本
inline CsketcherDoc* CsketcherView::GetDocument() const
{ return reinterpret_cast<CsketcherDoc*>(m_pDocument); }
#endif
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -