D:/develop/v65/clients/outlook/install/output/export/funambol/clients/outlook/UI/src/AnimatedIcon.h

00001  /*
00002  * Copyright (C) 2007 Funambol, Inc.
00003  *
00004  * This program is free software; you can redistribute it and/or modify
00005  * it under the terms of the GNU General Public License version 2 as
00006  * published by the Free Software Foundation.
00007  *
00008  * This program is distributed in the hope that it will be useful,
00009  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00010  * MERCHANTABILITY, TITLE, NONINFRINGEMENT or FITNESS FOR A PARTICULAR
00011  * PURPOSE.  See the GNU General Public License for more details.
00012  *
00013  * You should have received a copy of the GNU General Public License
00014  * along with this program; if not, write to the Free Software
00015  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00016  * 02111-1307  USA
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 //enum ANIM_ICON_STATE {STATE_ARROWS, STATE_INVISIBLE, STATE_ICON_SYNC, STATE_DONE, STATE_BUTTON};
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);    // DDX/DDV support
00051         DECLARE_MESSAGE_MAP()
00052 
00053     afx_msg void OnTimer( UINT_PTR nIDEvent );
00054     afx_msg void OnPaint( );
00055 };
00056 

Generated on Fri Nov 9 12:21:26 2007 for Funambol Outlook Plug-in Library by  doxygen 1.5.2