00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #pragma once
00020
00025 #define ANIM_ICON_ARROWS 501
00026 #define ANIM_ICON_DELAY 300
00027 #define COLOR_INT_PANE RGB(241,241,241)
00028 #define COLOR_EXT_PANE RGB(255,255,255)
00029
00030
00031 enum ANIM_ICON_STATE {STATE_INVISIBLE, STATE_ICON_SYNC, STATE_DONE, STATE_BUTTON};
00032
00033
00037 class CAnimatedIcon : public CStatic
00038 {
00039 DECLARE_DYNAMIC(CAnimatedIcon)
00040
00041 public:
00042 int state;
00043 int counterAnim;
00044 CAnimatedIcon();
00045 void Animate();
00046 void StopAnim();
00047 virtual ~CAnimatedIcon();
00048
00049 protected:
00050 virtual void DoDataExchange(CDataExchange* pDX);
00051 DECLARE_MESSAGE_MAP()
00052
00053 afx_msg void OnTimer( UINT_PTR nIDEvent );
00054 afx_msg void OnPaint( );
00055 };
00056