From 52146f62fd28bc1a791734b9939378267140b095 Mon Sep 17 00:00:00 2001 From: Stephane Lussier Date: Fri, 28 Jul 2000 20:19:37 +0000 Subject: [PATCH] - UpdateWindow should refresh all children that have an update region. - In DIALOG_CreateIndirect UpdateWindow shouldn't be called. Wine will generate a WM_PAINT eventually for the dialog, no need to force a paint right away. (based on a patch from James Hatheway in the Corel tree) --- windows/dialog.c | 1 - windows/painting.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/windows/dialog.c b/windows/dialog.c index 2d206bd536c..a35001bd637 100644 --- a/windows/dialog.c +++ b/windows/dialog.c @@ -815,7 +815,6 @@ HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate, if (template.style & WS_VISIBLE && !(wndPtr->dwStyle & WS_VISIBLE)) { ShowWindow( hwnd, SW_SHOWNORMAL ); /* SW_SHOW doesn't always work */ - UpdateWindow( hwnd ); } WIN_ReleaseWndPtr(wndPtr); return hwnd; diff --git a/windows/painting.c b/windows/painting.c index b7139045530..dc1bf70a18d 100644 --- a/windows/painting.c +++ b/windows/painting.c @@ -995,7 +995,7 @@ BOOL16 WINAPI RedrawWindow16( HWND16 hwnd, const RECT16 *rectUpdate, */ void WINAPI UpdateWindow16( HWND16 hwnd ) { - PAINT_RedrawWindow( hwnd, NULL, 0, RDW_UPDATENOW | RDW_NOCHILDREN, 0 ); + PAINT_RedrawWindow( hwnd, NULL, 0, RDW_UPDATENOW | RDW_ALLCHILDREN, 0 ); } /*********************************************************************** @@ -1003,7 +1003,7 @@ void WINAPI UpdateWindow16( HWND16 hwnd ) */ void WINAPI UpdateWindow( HWND hwnd ) { - PAINT_RedrawWindow( hwnd, NULL, 0, RDW_UPDATENOW | RDW_NOCHILDREN, 0 ); + PAINT_RedrawWindow( hwnd, NULL, 0, RDW_UPDATENOW | RDW_ALLCHILDREN, 0 ); } /***********************************************************************