Spinner.h
上传用户:z_mail1980
上传日期:2007-06-01
资源大小:647k
文件大小:1k
- // Spinner.h: interface for the CSpinner class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_SPINNER_H__E9069FF4_8D25_4B46_A782_0BAA7D8E68C6__INCLUDED_)
- #define AFX_SPINNER_H__E9069FF4_8D25_4B46_A782_0BAA7D8E68C6__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class CSpinner : public CObject
- {
- public:
- void Draw();
- BOOL *GetContinue(){return m_bContinue;}
- void SetContinue(BOOL *bContinue){m_bContinue=bContinue;}
- CWnd *GetViewWnd(){return m_pViewWnd;}
- void SetViewWnd(CWnd *pWnd){m_pViewWnd=pWnd;}
- void SetLength(int iLength){m_iRadius=iLength;}
- void SetPoint(CPoint pPoint){m_pCenter=pPoint;}
- CSpinner();
- virtual ~CSpinner();
- private:
- int m_crColor;
- int m_nMinute;
- int m_iRadius;
- CPoint m_pCenter;
- static COLORREF m_crColors[8];
- CWnd *m_pViewWnd;
- BOOL *m_bContinue;
- };
- #endif // !defined(AFX_SPINNER_H__E9069FF4_8D25_4B46_A782_0BAA7D8E68C6__INCLUDED_)