Author: jimtabor
Date: Mon May 28 20:12:21 2012
New Revision: 56671
URL:
http://svn.reactos.org/svn/reactos?rev=56671&view=rev
Log:
[Service Manager]
- Patch by Hermes Belusca: Fix dialog painting. See bug 4965, marked as WIP.
Modified:
trunk/reactos/base/applications/mscutils/servman/progress.c
trunk/reactos/base/applications/mscutils/servman/servman.c
Modified: trunk/reactos/base/applications/mscutils/servman/progress.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/progress.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/servman/progress.c [iso-8859-1] Mon May 28
20:12:21 2012
@@ -171,6 +171,12 @@
0,
lpProgStr);
}
+
+ /* Finally, show and update the progress dialog */
+ ShowWindow(hProgDlg, SW_SHOWNORMAL);
+ UpdateWindow(hProgDlg);
+
+ // TODO: Add a message loop for it ?
}
return hProgDlg;
Modified: trunk/reactos/base/applications/mscutils/servman/servman.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mscutils…
==============================================================================
--- trunk/reactos/base/applications/mscutils/servman/servman.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mscutils/servman/servman.c [iso-8859-1] Mon May 28
20:12:21 2012
@@ -47,7 +47,7 @@
/* 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);