ibrowser: display download progress in percent
Modified: trunk/reactos/subsys/system/ibrowser/mainframe.cpp
Modified: trunk/reactos/subsys/system/ibrowser/webchild.h

Modified: trunk/reactos/subsys/system/ibrowser/mainframe.cpp
--- trunk/reactos/subsys/system/ibrowser/mainframe.cpp	2006-01-10 18:01:11 UTC (rev 20763)
+++ trunk/reactos/subsys/system/ibrowser/mainframe.cpp	2006-01-10 19:18:28 UTC (rev 20764)
@@ -233,7 +233,7 @@
 		break;
 
 	  case PM_SETSTATUSTEXT:
-		SendMessage(_hstatusbar, SB_SETTEXT, 0, lparam);
+		SendMessage(_hstatusbar, SB_SETTEXT, wparam, lparam);
 		break;
 
 	  case PM_URL_CHANGED:

Modified: trunk/reactos/subsys/system/ibrowser/webchild.h
--- trunk/reactos/subsys/system/ibrowser/webchild.h	2006-01-10 18:01:11 UTC (rev 20763)
+++ trunk/reactos/subsys/system/ibrowser/webchild.h	2006-01-10 19:18:28 UTC (rev 20764)
@@ -951,6 +951,12 @@
 
     void ProgressChange(long Progress, long ProgressMax)
 	{
+		String txt;
+
+		if (Progress>=0 && Progress<ProgressMax)
+			txt.printf(TEXT("%3d %%"), (int)(100.*Progress/ProgressMax+.5));
+
+		SendMessage(_hwndFrame, PM_SETSTATUSTEXT, 1, (LPARAM)txt.c_str());
 	}
 
     void WindowMove()