[SYSSETUP] Add marquee progress bar to show setup is alive (#262)
[reactos.git] / dll / win32 / syssetup / install.c
index 8c4ab5e..e5b5530 100644 (file)
@@ -553,7 +553,7 @@ ShowStatusMessageThread(
     IN LPVOID lpParameter)
 {
     HWND *phWnd = (HWND *)lpParameter;
-    HWND hWnd;
+    HWND hWnd, hItem;
     MSG Msg;
 
     hWnd = CreateDialogParam(hDllInstance,
@@ -567,6 +567,12 @@ ShowStatusMessageThread(
 
     ShowWindow(hWnd, SW_SHOW);
 
+    hItem = GetDlgItem(hWnd, IDC_STATUSPROGRESS);
+    if (hItem)
+    {
+        PostMessage(hItem, PBM_SETMARQUEE, TRUE, 40);
+    }
+
     /* Message loop for the Status window */
     while (GetMessage(&Msg, NULL, 0, 0))
     {