- 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)
This commit is contained in:
parent
0a116b8b8a
commit
52146f62fd
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
Loading…
Reference in New Issue