////////////////////////////////////////////////////////////////////////////// //文件 ScreenXY.h //主要功能: // 基础类库 //程序编写: 2005-12-07 ///////////////////////////////////////////////////////////////////////////// #pragma once class AFX_EXT_CLASS CScreenXY { public: CScreenXY(void); ~CScreenXY(void); int Create(double ScreenX0, double ScreenY0, double xPixelPerUnit, double yPixelPerUnit, double RealX0, double RealY0); double xScreen(double x); double yScreen(double y); double xReal(double x); double yReal(double y); int IsInScreen(int i, int j); void SetScreenRange(CDC* pDC); //设置Width与Height两个变量的值 long GetScreenWidth(double dWidth); long GetScreenHeight(double dHeight); double GetRealWidth(int nWidth); double GetRealHeight(int nHeight); double ScreenX0; double ScreenY0; double xPixelPerUnit; double yPixelPerUnit; double RealX0; double RealY0; long Width,Height; };