www.pudn.com > MapDB.rar > MapDBView.h


// MapDBView.h : interface of the CMapDBView class 
// 
///////////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MAPDBVIEW_H__8D4136E9_A004_4524_AC51_AEFF385A29DF__INCLUDED_) 
#define AFX_MAPDBVIEW_H__8D4136E9_A004_4524_AC51_AEFF385A29DF__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
class CMapDBView : public CScrollView 
{ 
protected: // create from serialization only 
	CMapDBView(); 
	DECLARE_DYNCREATE(CMapDBView) 
 
// Attributes 
public: 
	CMapDBDoc* GetDocument(); 
	void DrawVector(CDC* pDC); 
	BOOL m_bPaning; 
	HCURSOR m_hSelect; 
// Operations 
public: 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CMapDBView) 
	public: 
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view 
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs); 
	protected: 
	virtual void OnInitialUpdate(); // called first time after construct 
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo); 
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo); 
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo); 
	//}}AFX_VIRTUAL 
 
// Implementation 
public: 
	void DrawSelect(); 
	void SetImage(); 
	virtual ~CMapDBView(); 
#ifdef _DEBUG 
	virtual void AssertValid() const; 
	virtual void Dump(CDumpContext& dc) const; 
#endif 
 
protected: 
 
// Generated message map functions 
protected: 
	//{{AFX_MSG(CMapDBView) 
	afx_msg BOOL OnEraseBkgnd(CDC* pDC); 
	afx_msg void OnZoomIn(); 
	afx_msg void OnZoomOut(); 
	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 OnSetCursor(CWnd* pWnd, UINT nHitTest, UINT message); 
	afx_msg void OnZoomOriginal(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
#ifndef _DEBUG  // debug version in MapDBView.cpp 
inline CMapDBDoc* CMapDBView::GetDocument() 
   { return (CMapDBDoc*)m_pDocument; } 
#endif 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_MAPDBVIEW_H__8D4136E9_A004_4524_AC51_AEFF385A29DF__INCLUDED_)