mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +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
|
||||
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);
|
||||
}
|
||||
|
||||
UNIMPLEMENTED;
|
||||
}
|
||||
else /* Content cannot be redrawn after a change. */
|
||||
{
|
||||
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