[NTUSER] Fix window not updating when scrollbars created and removed. (#7245)

* Revise conditions for window complete redraw.

CORE-19669

Co-authored-by: Oleg Dubinskiy <oleg.dubinskij30@gmail.com>
Co-authored-by: Vitaly Orekhov <7opex0@mail.ru>
This commit is contained in:
Doug Lyons 2024-08-28 02:56:28 -05:00 committed by GitHub
parent 1573461cec
commit 9c0eee0333
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2047,11 +2047,11 @@ co_WinPosSetWindowPos(
* class need to be completely repainted on (horizontal/vertical) size
* change.
*/
if ( ( VisBefore != NULL &&
VisAfter != NULL &&
!(WinPos.flags & SWP_NOCOPYBITS) &&
((WinPos.flags & SWP_NOSIZE) || !(WvrFlags & WVR_REDRAW)) &&
!(Window->ExStyle & WS_EX_TRANSPARENT) ) )
if (VisBefore != NULL &&
VisAfter != NULL &&
!(WvrFlags & WVR_REDRAW) &&
!(WinPos.flags & SWP_NOCOPYBITS) &&
!(Window->ExStyle & WS_EX_TRANSPARENT))
{
/*