#include "propsheet.h"
#include "threebar.h"
+#include "cistring.h"
-bool
-ThreeBarProgressPage::Create ()
+bool ThreeBarProgressPage::Create ()
{
return PropertyPage::Create (IDD_INSTATUS);
}
void
ThreeBarProgressPage::SetText1 (const TCHAR * t)
{
- SetWindowText (ins_action, t);
+ ::SetWindowText (ins_action, t);
}
void
ThreeBarProgressPage::SetText2 (const TCHAR * t)
{
- SetWindowText (ins_pkgname, t);
+ ::SetWindowText (ins_pkgname, t);
}
void
ThreeBarProgressPage::SetText3 (const TCHAR * t)
{
- SetWindowText (ins_filename, t);
+ ::SetWindowText (ins_filename, t);
+}
+
+void
+ThreeBarProgressPage::SetText4 (const TCHAR * t)
+{
+ ::SetWindowText (ins_bl_package, t);
}
void
{
int percent = (int) (100.0 * ((double) progress) / (double) max);
SendMessage (ins_iprogress, PBM_SETPOS, (WPARAM) percent, 0);
+ cistring s;
+ s.Format (IDS_CYGWIN_SETUP_WITH_PROGRESS, percent);
+ GetOwner ()->SetWindowText (s.c_str ());
}
void
}
bool
-ThreeBarProgressPage::OnMessageApp (UINT uMsg, WPARAM wParam, LPARAM lParam)
+ ThreeBarProgressPage::OnMessageApp (UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (uMsg)
{