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
1 changed files with 3 additions and 2 deletions

View File

@ -696,8 +696,9 @@ TOOLBAR_DrawImage(TOOLBAR_INFO *infoPtr, TBUTTON_INFO *btnPtr, INT left, INT top
draw_masked = TRUE;
}
}
else if ((tbcd->nmcd.uItemState & CDIS_HOT)
&& ((infoPtr->dwStyle & TBSTYLE_FLAT) || GetWindowTheme (infoPtr->hwndSelf)))
else if (tbcd->nmcd.uItemState & CDIS_CHECKED ||
((tbcd->nmcd.uItemState & CDIS_HOT)
&& ((infoPtr->dwStyle & TBSTYLE_FLAT) || GetWindowTheme (infoPtr->hwndSelf))))
{
/* if hot, attempt to draw with hot image list, if fails,
use default image list */