mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 16:51:39 +00:00
[WIN32SS] Repaint the whole window frame on some style bits set (#3199)
This fixes the ReactOS Calculator buttons disappearing in CORE-16827
This commit is contained in:
parent
303f17f884
commit
8081ba9332
1 changed files with 19 additions and 7 deletions
|
@ -2111,6 +2111,17 @@ co_WinPosSetWindowPos(
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !(pwnd->style & WS_CHILD) )
|
if ( !(pwnd->style & WS_CHILD) )
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* Check if we have these specific windows style bits set/reset.
|
||||||
|
* FIXME: There may be other combinations of styles that need this handling as well.
|
||||||
|
* This fixes the ReactOS Calculator buttons disappearing in CORE-16827.
|
||||||
|
*/
|
||||||
|
if ((Window->style & WS_CLIPSIBLINGS) && !(Window->style & (WS_POPUP | WS_CLIPCHILDREN | WS_SIZEBOX)))
|
||||||
|
{
|
||||||
|
IntSendNCPaint(pwnd, HRGN_WINDOW); // Paint the whole frame.
|
||||||
|
}
|
||||||
|
else // Use region handling
|
||||||
{
|
{
|
||||||
HRGN DcRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
|
HRGN DcRgn = NtGdiCreateRectRgn(0, 0, 0, 0);
|
||||||
PREGION DcRgnObj = REGION_LockRgn(DcRgn);
|
PREGION DcRgnObj = REGION_LockRgn(DcRgn);
|
||||||
|
@ -2122,6 +2133,7 @@ co_WinPosSetWindowPos(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
REGION_Delete(DirtyRgn);
|
REGION_Delete(DirtyRgn);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue