[COMCTL32] Guard header.c ScrollWindowEx fixed call in #ifdef

Co-authored-by: Carl J. Bialorucki <cbialo2@outlook.com>
This commit is contained in:
Werru2955 2024-04-24 10:58:29 -04:00 committed by GitHub
parent b22949ae57
commit ded503a9ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1954,7 +1954,13 @@ HEADER_MouseMove (HEADER_INFO *infoPtr, LPARAM lParam)
GetClientRect(infoPtr->hwndSelf, &rcClient);
rcScroll = rcClient;
rcScroll.left = lpItem->rect.left + nOldWidth;
#ifdef __REACTOS__
ScrollWindowEx(infoPtr->hwndSelf, nWidth - nOldWidth, 0, &rcScroll, &rcClient,
NULL, NULL, SW_INVALIDATE);
#else
ScrollWindowEx(infoPtr->hwndSelf, nWidth - nOldWidth, 0, &rcScroll, &rcClient, NULL, NULL, 0);
InvalidateRect(infoPtr->hwndSelf, &lpItem->rect, FALSE);
#endif
NULL, NULL, SW_INVALIDATE);
UpdateWindow(infoPtr->hwndSelf);