Module: wine Branch: master Commit: 3e68a1f1ff10f1a28a904de5e7946362f23f3cc7 URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=3e68a1f1ff10f1a28a904de5...
Author: Oleg Krylov oleg.krylov@gmail.com Date: Wed Aug 16 20:59:46 2006 +0300
comctl32: toolbar: Use HOT imagelist for buttons in CHECKED state.
---
dlls/comctl32/toolbar.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c index e84150e..c1926cb 100644 --- a/dlls/comctl32/toolbar.c +++ b/dlls/comctl32/toolbar.c @@ -696,8 +696,9 @@ TOOLBAR_DrawImage(TOOLBAR_INFO *infoPtr, 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 */