mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
Wine port WM_SETREDRAW.
svn path=/trunk/; revision=22500
This commit is contained in:
parent
2b5ee06b1a
commit
cccec459d0
1 changed files with 17 additions and 4 deletions
|
@ -196,12 +196,25 @@ UserGetInsideRectNC(HWND hWnd, RECT *rect)
|
||||||
VOID
|
VOID
|
||||||
DefWndSetRedraw(HWND hWnd, WPARAM wParam)
|
DefWndSetRedraw(HWND hWnd, WPARAM wParam)
|
||||||
{
|
{
|
||||||
if ((BOOL) wParam && 0 == (GetWindowLong(hWnd, GWL_STYLE) & WS_VISIBLE))
|
LONG Style = GetWindowLong(hWnd, GWL_STYLE);
|
||||||
|
/* Content can be redrawn after a change. */
|
||||||
|
if (wParam)
|
||||||
{
|
{
|
||||||
ShowWindow(hWnd, SW_NORMAL);
|
if (!(Style & WS_VISIBLE)) /* Not Visible */
|
||||||
|
{
|
||||||
|
SetWindowLong(hWnd, GWL_STYLE, WS_VISIBLE);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
else /* Content cannot be redrawn after a change. */
|
||||||
UNIMPLEMENTED;
|
{
|
||||||
|
if (Style & WS_VISIBLE) /* Visible */
|
||||||
|
{
|
||||||
|
RedrawWindow( hWnd, NULL, 0, RDW_ALLCHILDREN | RDW_VALIDATE );
|
||||||
|
Style &= ~WS_VISIBLE;
|
||||||
|
SetWindowLong(hWnd, GWL_STYLE, Style); /* clear bits */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue