https://git.reactos.org/?p=reactos.git;a=commitdiff;h=9b8a5fc5f0fe5b82e056a…
commit 9b8a5fc5f0fe5b82e056adee7255ef7a20c85cff
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Tue Dec 12 06:27:46 2023 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Tue Dec 12 06:27:46 2023 +0900
[COMCTL32] Tab control: Use InvalidateRect in TAB_SetItemT update (#6154)
Based on KRosUser's tab.patch.
- In TAB_SetItemT function, use
InvalidateRect instead of
TAB_InvalidateTabArea.
CORE-11454
---
dll/win32/comctl32/tab.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dll/win32/comctl32/tab.c b/dll/win32/comctl32/tab.c
index f2fc59fb4b6..125dd91e8c4 100644
--- a/dll/win32/comctl32/tab.c
+++ b/dll/win32/comctl32/tab.c
@@ -2800,7 +2800,11 @@ TAB_SetItemT (TAB_INFO *infoPtr, INT iItem, LPTCITEMW tabItem, BOOL
bUnicode)
/* Update and repaint tabs */
TAB_SetItemBounds(infoPtr);
+#ifdef __REACTOS__
+ InvalidateRect(infoPtr->hwnd, NULL, TRUE);
+#else
TAB_InvalidateTabArea(infoPtr);
+#endif
return TRUE;
}