[Service Manager]

- Patch by Hermes Belusca: Fix dialog painting. See bug 4965, marked as WIP.

svn path=/trunk/; revision=56671
This commit is contained in:
James Tabor 2012-05-28 20:12:21 +00:00
parent 14c472ac5d
commit bf77113125
2 changed files with 7 additions and 1 deletions

View file

@ -171,6 +171,12 @@ CreateProgressDialog(HWND hParent,
0, 0,
lpProgStr); lpProgStr);
} }
/* Finally, show and update the progress dialog */
ShowWindow(hProgDlg, SW_SHOWNORMAL);
UpdateWindow(hProgDlg);
// TODO: Add a message loop for it ?
} }
return hProgDlg; return hProgDlg;

View file

@ -47,7 +47,7 @@ _tWinMain(HINSTANCE hThisInstance,
/* pump the message queue */ /* pump the message queue */
while( GetMessage( &Msg, NULL, 0, 0 ) ) while( GetMessage( &Msg, NULL, 0, 0 ) )
{ {
//if(! IsDialogMessage(hProgDlg, &Msg) ) //if ( !hProgDlg || !IsWindow(hProgDlg) || !IsDialogMessage(hProgDlg, &Msg) )
//{ //{
TranslateMessage(&Msg); TranslateMessage(&Msg);
DispatchMessage(&Msg); DispatchMessage(&Msg);