Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
EZSnakeCtrl.h
Package: EZSnakeCtrl_demo.zip [view]
Upload User: cqzhuye
Upload Date: 2007-01-01
Package Size: 72k
Code Size: 2k
Category:
Browser Client
Development Platform:
Visual C++
- //////
- // 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_)