[Service Manager]
authorJames Tabor <james.tabor@reactos.org>
Mon, 28 May 2012 20:12:21 +0000 (20:12 +0000)
committerJames Tabor <james.tabor@reactos.org>
Mon, 28 May 2012 20:12:21 +0000 (20:12 +0000)
- Patch by Hermes Belusca: Fix dialog painting. See bug 4965, marked as WIP.

svn path=/trunk/; revision=56671

reactos/base/applications/mscutils/servman/progress.c
reactos/base/applications/mscutils/servman/servman.c

index 06f4fed..e3c2d6b 100644 (file)
@@ -171,6 +171,12 @@ CreateProgressDialog(HWND hParent,
                      0,
                      lpProgStr);
         }
+
+        /* Finally, show and update the progress dialog */
+        ShowWindow(hProgDlg, SW_SHOWNORMAL);
+        UpdateWindow(hProgDlg);
+
+        // TODO: Add a message loop for it ?
     }
 
     return hProgDlg;
index 47afa1e..c6756d4 100644 (file)
@@ -47,7 +47,7 @@ _tWinMain(HINSTANCE hThisInstance,
             /* pump the message queue */
             while( GetMessage( &Msg, NULL, 0, 0 ) )
             {
-                //if(! IsDialogMessage(hProgDlg, &Msg) )
+                //if ( !hProgDlg || !IsWindow(hProgDlg) || !IsDialogMessage(hProgDlg, &Msg) )
                 //{
                     TranslateMessage(&Msg);
                     DispatchMessage(&Msg);