Added methods to FTProgress class for creating, destroying
and intialization the progress bar controls.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@379 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/vncviewer/FTProgress.h b/vncviewer/FTProgress.h
index 74243de..2aef36d 100644
--- a/vncviewer/FTProgress.h
+++ b/vncviewer/FTProgress.h
@@ -26,7 +26,9 @@
#include <windows.h>
#include <commctrl.h>
+#include <stdio.h>
+#include <rfb_win32/ProgressControl.h>
#include <vncviewer/resource.h>
namespace rfb {
@@ -34,12 +36,28 @@
class FTProgress
{
public:
- FTProgress();
+ FTProgress(HWND hwndParent);
~FTProgress();
bool initialize(DWORD64 totalMaxValue, DWORD maxValue);
void increase(DWORD value);
void clear();
+
+ private:
+ ProgressControl *m_pSingleProgress;
+ ProgressControl *m_pGeneralProgress;
+
+ HWND m_hwndParent;
+ HWND m_hwndSinglePercent;
+ HWND m_hwndGeneralPercent;
+
+ bool m_bInitialized;
+
+ bool initProgressControls(DWORD64 totalMaxValue, DWORD maxValue);
+
+ void setProgressText();
+ bool createProgressBarObjects();
+ bool destroyProgressBarObjects();
};
}
}