?? tinmap.h
字號:
// TinMap.h : interface of the CTinMap class
//
#pragma once
class CTinMap : public CView
{
protected: // 僅從序列化創建
CTinMap();
DECLARE_DYNCREATE(CTinMap)
// 屬性
public:
CTinDoc* GetDocument() const;
protected:
// 內存DC
CDC *m_pMemDC;
CBitmap *m_pMemBM;
// 內存位圖大小
long m_dw, m_dh;
// 客戶區大小
long m_cw, m_ch;
long MoveX, MoveY;
// 工具條
long m_nTool1, m_nTool2;
long m_bLBDown;
CPoint m_prePoint, m_midPoint, m_endPoint;
// 操作
public:
void MoveTo(double x, double y);
// 重寫
public:
virtual void OnDraw(CDC* pDC); // 重寫以繪制該視圖
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
virtual void OnInitialUpdate();
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
// 實現
public:
virtual ~CTinMap();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// 生成的消息映射函數
protected:
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
afx_msg BOOL OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message);
afx_msg void OnZoomInt();
afx_msg void OnUpdateZoomInt(CCmdUI* pCmdUI);
afx_msg void OnZoomOut();
afx_msg void OnUpdateZoomOut(CCmdUI* pCmdUI);
afx_msg void OnMovePan();
afx_msg void OnUpdateMovePan(CCmdUI* pCmdUI);
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // TinMap.cp 中的調試版本p
inline CTinDoc* CTinMap::GetDocument()
{ return (CTinDoc*)m_pDocument; }
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -