mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
- 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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user