toolbar fix

nog nog at sdf.lonestar.org
Mon Jul 30 12:44:20 CDT 2001


Sorry for posting this message to the wrong place but somehow it
happened.

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-patches mailing list