DrawWnd.h
上传用户:liuhua
上传日期:2022-07-19
资源大小:27k
文件大小:2k
- #if !defined(AFX_DRAWWND_H__8E57716F_8674_11D3_9B96_00ED140000A2__INCLUDED_)
- #define AFX_DRAWWND_H__8E57716F_8674_11D3_9B96_00ED140000A2__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // DrawWnd.h : header file
- //my codes start here
- #define SeedRand() srand((UINT)::GetTickCount())
- /////////////////////////////////////////////////////////////////////////////
- // CDrawWnd window
- class CDrawWnd : public CWnd
- {
- // Construction
- public:
- CDrawWnd();
- // Attributes
- public:
- static LPCTSTR m_lpszClassName;
- double x[200],y[200];
- int Total;
- float Bx,By;
- double p,q;
- float scale,m;
- int drawtrue,value;
- DWORD m_pcolor;
- double mag;
- CRect m_nSize;
- int draw;
- //////////
- double xx,yy;int i,k;
- int MaxY;
- double a[8],b[8],c[8],d[8],e[8],f[8],pp[8];
- COLORREF m_pColor;
- int m_N;
- int stepx,stepy;
- int totalsteps;
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CDrawWnd)
- public:
- virtual BOOL Create(DWORD dwExStyle, DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, CCreateContext* pContext=NULL );
- //}}AFX_VIRTUAL
- // Implementation
- public:
- void SetSpeed(int nSpeed);
- void Draw(CDC & dc);
- double MapRand(double nMax);
- virtual ~CDrawWnd();
- // Generated message map functions
- protected:
- //{{AFX_MSG(CDrawWnd)
- afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
- afx_msg void OnPaint();
- afx_msg void OnTimer(UINT nIDEvent);
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_DRAWWND_H__8E57716F_8674_11D3_9B96_00ED140000A2__INCLUDED_)