www.pudn.com > DEM_TDS.rar > MapViewAttrib.h, change:2007-05-27,size:1377b


// MapViewAttrib.h: interface for the MapViewAttrib class. 
// 
////////////////////////////////////////////////////////////////////// 
 
#if !defined(AFX_MAPVIEWATTRIB_H__F5E966FE_8FCB_4B90_A86A_EACA975272D6__INCLUDED_) 
#define AFX_MAPVIEWATTRIB_H__F5E966FE_8FCB_4B90_A86A_EACA975272D6__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
//ͼԪʾ 
class MapViewAttrib   
{ 
	CPoint ViewportOrg; 
	CPoint WindowExt; 
	CPoint ViewportExt; 
	CPoint WindowOrg; 
public: 
	void DrawGrad(CDC *pDC,int Size_X,int Size_Y); 
	CPoint GetPointNumber(CPoint point); 
	float scale; 
	float scalex,scaley; 
	void SetMapView(); 
	CPoint GetWindowExt(); 
	void SetShowScale(float scale,CPoint unmovept); 
	float GetShowScale(); 
	void WheelZoom(int zoomadd,CPoint pt); 
	void ViewportChange(CRect,int,int); 
	void SetCurrentPoint(CPoint); 
	void DrawCret(CPoint,CDC*,bool ); 
	void ShowRect(CPoint); 
	void SetOldPoint(CPoint); 
	void MoveWithMouse(CPoint); 
	void WindowMove(CPoint); 
	CPoint GetWindowOrg(); 
	CPoint GetViewExt(); 
	MapViewAttrib(); 
	virtual ~MapViewAttrib(); 
//	void SetMapView(CDC *pDC); 
	void ReFlesh(CRect,int Size_X,int Size_Y); 
	void ZoomIn(); 
	void ZoomOut(); 
private: 
	float showscale; 
	CPoint currentpoint; 
	CPoint oldpoint; 
}; 
 
#endif // !defined(AFX_MAPVIEWATTRIB_H__F5E966FE_8FCB_4B90_A86A_EACA975272D6__INCLUDED_)