- Handle WM_SETREDRAW messages differently in the DefWndProc, ported from current Wine

- Fixes mIRC riched component regression, no more riched20 reverts for releases needed
See issue #4098 for more details.

svn path=/trunk/; revision=42321
This commit is contained in:
Gregor Schneider 2009-08-01 11:26:40 +00:00
parent 3002ba1042
commit 7163d097d0

View file

@ -1245,7 +1245,14 @@ User32DefWindowProc(HWND hWnd,
case WM_SETREDRAW:
{
DefWndSetRedraw(hWnd, wParam);
LONG_PTR Style = GetWindowLongPtrW(hWnd, GWL_STYLE);
if (wParam) SetWindowLongPtr(hWnd, GWL_STYLE, Style | WS_VISIBLE);
else
{
RedrawWindow(hWnd, NULL, 0, RDW_ALLCHILDREN | RDW_VALIDATE);
Style &= ~WS_VISIBLE;
SetWindowLongPtr(hWnd, GWL_STYLE, Style);
}
return (0);
}