Commit 3e68a1f1 authored by Oleg Krylov's avatar Oleg Krylov Committed by Alexandre Julliard

comctl32: toolbar: Use HOT imagelist for buttons in CHECKED state.

parent 58f488e5
...@@ -696,8 +696,9 @@ TOOLBAR_DrawImage(TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, INT left, INT top ...@@ -696,8 +696,9 @@ TOOLBAR_DrawImage(TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, INT left, INT top
draw_masked = TRUE; draw_masked = TRUE;
} }
} }
else if ((tbcd->nmcd.uItemState & CDIS_HOT) else if (tbcd->nmcd.uItemState & CDIS_CHECKED ||
&& ((infoPtr->dwStyle & TBSTYLE_FLAT) || GetWindowTheme (infoPtr->hwndSelf))) ((tbcd->nmcd.uItemState & CDIS_HOT)
&& ((infoPtr->dwStyle & TBSTYLE_FLAT) || GetWindowTheme (infoPtr->hwndSelf))))
{ {
/* if hot, attempt to draw with hot image list, if fails, /* if hot, attempt to draw with hot image list, if fails,
use default image list */ use default image list */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment