Oleg Krylov : comctl32: toolbar:
Use HOT imagelist for buttons in CHECKED state.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 17 05:04:35 CDT 2006
Module: wine
Branch: master
Commit: 3e68a1f1ff10f1a28a904de5e7946362f23f3cc7
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=3e68a1f1ff10f1a28a904de5e7946362f23f3cc7
Author: Oleg Krylov <oleg.krylov at 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 */
More information about the wine-cvs
mailing list