mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:52:59 +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:
parent
3002ba1042
commit
7163d097d0
1 changed files with 8 additions and 1 deletions
|
@ -1245,7 +1245,14 @@ User32DefWindowProc(HWND hWnd,
|
||||||
|
|
||||||
case WM_SETREDRAW:
|
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);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue