blob: caad779875f5d6231397a55f63e1c9ddc2789683 [file] [log] [blame]
Dennis Syrovatsky803e02c2005-11-06 05:35:27 +00001/* Copyright (C) 2005 TightVNC Team. All Rights Reserved.
Dennis Syrovatskyf72f9fd2006-04-17 08:56:48 +00002 *
3 * Developed by Dennis Syrovatsky
Dennis Syrovatsky803e02c2005-11-06 05:35:27 +00004 *
5 * This is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This software is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this software; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
18 * USA.
19 *
20 * TightVNC distribution homepage on the Web: http://www.tightvnc.com/
21 *
22 */
23
24// -=- FTProgress.h
25
26#ifndef __RFB_WIN32_FTPROGRESS_H__
27#define __RFB_WIN32_FTPROGRESS_H__
28
29#include <windows.h>
30#include <commctrl.h>
Dennis Syrovatsky93196042005-11-07 08:09:54 +000031#include <stdio.h>
Dennis Syrovatsky803e02c2005-11-06 05:35:27 +000032
Dennis Syrovatsky93196042005-11-07 08:09:54 +000033#include <rfb_win32/ProgressControl.h>
Dennis Syrovatsky803e02c2005-11-06 05:35:27 +000034#include <vncviewer/resource.h>
35
36namespace rfb {
37 namespace win32 {
38 class FTProgress
39 {
40 public:
Dennis Syrovatsky93196042005-11-07 08:09:54 +000041 FTProgress(HWND hwndParent);
Dennis Syrovatsky803e02c2005-11-06 05:35:27 +000042 ~FTProgress();
43
Dennis Syrovatsky803e02c2005-11-06 05:35:27 +000044 void increase(DWORD value);
Dennis Syrovatsky6806fec2005-11-28 06:12:44 +000045 void clearAndInitGeneral(DWORD64 dw64MaxValue, DWORD64 dw64Position);
46 void clearAndInitSingle(DWORD dwMaxValue, DWORD dwPosition);
Dennis Syrovatsky2d350412005-11-07 08:21:03 +000047 void clearAll();
Dennis Syrovatsky93196042005-11-07 08:09:54 +000048
49 private:
50 ProgressControl *m_pSingleProgress;
51 ProgressControl *m_pGeneralProgress;
52
53 HWND m_hwndParent;
54 HWND m_hwndSinglePercent;
55 HWND m_hwndGeneralPercent;
56
57 bool m_bInitialized;
58
Dennis Syrovatsky93196042005-11-07 08:09:54 +000059 void setProgressText();
60 bool createProgressBarObjects();
61 bool destroyProgressBarObjects();
Dennis Syrovatsky803e02c2005-11-06 05:35:27 +000062 };
63 }
64}
65
66#endif // __RFB_WIN32_FTPROGRESS_H__