EZSnakeCtrl.h
上传用户:cqzhuye
上传日期:2007-01-01
资源大小:72k
文件大小:2k
- //////
- // EZSnakeCtrl - An Indefinite progressctrl like netscape's status bar progress
- // Copyright V.Lakshmi Narasimhan,ezlux@Yahoo.com.
- // Feel free to use,modify,twist,turn or even
- // digest the code for any non commercial purposes.
- // I would appreciate constructive suggestions & bug reports.
- // Please dont delete the above lines.
- ///////
- #if !defined(AFX_EZSNAKECTRL_H__0FB972C1_9D3E_11D1_9D77_90672FE32418__INCLUDED_)
- #define AFX_EZSNAKECTRL_H__0FB972C1_9D3E_11D1_9D77_90672FE32418__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- // EZSnakeCtrl.h : header file
- //
- /////////////////////////////////////////////////////////////////////////////
- // CEZSnakeCtrl window
- class CEZSnakeCtrl : public CStatic
- {
- // Construction
- public:
- CEZSnakeCtrl();
- // Attributes
- public:
- // Operations
- public:
- // Overrides
- // ClassWizard generated virtual function overrides
- //{{AFX_VIRTUAL(CEZSnakeCtrl)
- //}}AFX_VIRTUAL
- // Implementation
- public:
- int GetMax();
- void ResetProgress();
- int GetTail();
- COLORREF GetGradientEndColor();
- COLORREF GetGradientStartColor();
- COLORREF GetBkColor();
- BOOL IsReverse();
- int GetSize();
- int GetStep();
- int GetPos();
- void SetMax(int nMax);
- void SetStep(int nStep);
- int StepIt();
- void SetGradientFill(COLORREF clrStart,COLORREF clrEnd);
- void SetBkColor(COLORREF clrFG);
- void SetSize(int nSize);
- virtual ~CEZSnakeCtrl();
- // Generated message map functions
- protected:
- int SafeStepTail();
- int SafeStepHead();
- void DrawGradient(CDC *pDC,CRect rcGrad);
- //{{AFX_MSG(CEZSnakeCtrl)
- afx_msg void OnPaint();
- //}}AFX_MSG
- DECLARE_MESSAGE_MAP()
- private:
- BOOL m_bTimeForTail;
- BOOL m_bReverse;
- int m_nStep;
- int m_nPos;
- int m_nTail;
- int m_nSize;
- int m_nMax;
-
- COLORREF m_clrBk;
- COLORREF m_clrEnd;
- COLORREF m_clrStart;
- COLORREF m_clrCurEnd;
- COLORREF m_clrCurStart;
-
-
- };
- /////////////////////////////////////////////////////////////////////////////
- //{{AFX_INSERT_LOCATION}}
- // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
- #endif // !defined(AFX_EZSNAKECTRL_H__0FB972C1_9D3E_11D1_9D77_90672FE32418__INCLUDED_)