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

This commit is contained in:
Oleg Krylov 2006-08-16 20:59:46 +03:00 committed by Alexandre Julliard
parent 58f488e5f5
commit 3e68a1f1ff

View File

@ -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 */