https://git.reactos.org/?p=reactos.git;a=commitdiff;h=522601d0503b19d09e0ec…
commit 522601d0503b19d09e0ecce9bf2c474370d419e2
Author: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
AuthorDate: Thu Jan 4 14:30:47 2018 +0200
[COMCTL32] toolbar: Draw checked and not hot buttons as checked, not hot. CORE-13592
Should be sent to wine.
---
dll/win32/comctl32/toolbar.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/dll/win32/comctl32/toolbar.c b/dll/win32/comctl32/toolbar.c
index e0a73e7f12..8f78b2c792 100644
--- a/dll/win32/comctl32/toolbar.c
+++ b/dll/win32/comctl32/toolbar.c
@@ -1130,7 +1130,11 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO
*btnPtr, HDC hdc,
else if (tbcd.nmcd.uItemState & CDIS_SELECTED)
stateId = TS_PRESSED;
else if (tbcd.nmcd.uItemState & CDIS_CHECKED)
+#ifdef __REACTOS__
+ stateId = (tbcd.nmcd.uItemState & CDIS_HOT) ? TS_HOTCHECKED :
TS_CHECKED;
+#else
stateId = (tbcd.nmcd.uItemState & CDIS_HOT) ? TS_HOTCHECKED : TS_HOT;
+#endif
else if ((tbcd.nmcd.uItemState & CDIS_HOT)
|| (drawSepDropDownArrow && btnPtr->bDropDownPressed))
stateId = TS_HOT;
@@ -1156,7 +1160,11 @@ TOOLBAR_DrawButton (const TOOLBAR_INFO *infoPtr, TBUTTON_INFO
*btnPtr, HDC hdc,
else if (btnPtr->bDropDownPressed || (tbcd.nmcd.uItemState &
CDIS_SELECTED))
stateId = TS_PRESSED;
else if (tbcd.nmcd.uItemState & CDIS_CHECKED)
+#ifdef __REACTOS__
+ stateId = (tbcd.nmcd.uItemState & CDIS_HOT) ? TS_HOTCHECKED :
TS_CHECKED;
+#else
stateId = (tbcd.nmcd.uItemState & CDIS_HOT) ? TS_HOTCHECKED :
TS_HOT;
+#endif
else if (tbcd.nmcd.uItemState & CDIS_HOT)
stateId = TS_HOT;