toolbar fix
nog
nog at sdf.lonestar.org
Sun Jul 29 10:54:40 CDT 2001
Hi all,
Changelog:
Nog <nog at sdf.lonestar.org>
Don't enable the 'hot' state of a toolbar button when it's not
enabled.
-------------- next part --------------
--- dlls/comctl32/toolbar.c Sun Jul 29 09:08:56 2001
+++ dlls/comctl32/toolbar.c Sun Jul 29 11:41:50 2001
@@ -4123,13 +4123,13 @@
if (nHit >= 0)
{
btnPtr = &infoPtr->buttons[nHit];
- btnPtr->bHot = TRUE;
infoPtr->nHotItem = nHit;
/* only enabled buttons show hot effect */
if(infoPtr->buttons[nHit].fsState & TBSTATE_ENABLED)
{
+ btnPtr->bHot = TRUE;
InvalidateRect(hwnd, &btnPtr->rect,
TOOLBAR_HasText(infoPtr, btnPtr));
}
More information about the wine-devel
mailing list