GENWIN.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- //+---------------------------------------------------------------------------
- //
- // Microsoft Windows
- // Copyright 1992 - 1997 Microsoft Corporation.
- //
- // File: genwin.h
- //
- // Contents: definition for the generator control window
- //
- // Classes: CGeneratorWindow
- //
- // Functions:
- //
- // History: 5-05-94 stevebl Created
- //
- //----------------------------------------------------------------------------
- #ifndef __GENWIN_H__
- #define __GENWIN_H__
- #include <windows.h>
- #include <cwindow.h>
- #define MAX_POINTS 51
- #ifdef __cplusplus
- class CGeneratorWindow: public CHlprWindow
- {
- public:
- LRESULT WindowProc(UINT uMsg, WPARAM wParam, LPARAM lParam);
- void InitializePoints(double * rgRadius, double * rgTheta, unsigned nSegments);
- void RetrievePoints(double * rgRadius, double * rgTheta, unsigned &nSegments);
- void Redraw(void);
- private:
- double _rgX[MAX_POINTS];
- double _rgY[MAX_POINTS];
- unsigned _uTrackingPoint;
- unsigned _nPoints;
- unsigned _uWidth, _uHeight;
- };
- #endif // __cplusplus
- #endif // __GENWIN_H__