Don't enable the 'hot' state of a toolbar button when it's not

enabled.
This commit is contained in:
Nog 2001-07-31 00:10:06 +00:00 committed by Alexandre Julliard
parent 7fc3a3bf20
commit 111ec8d6c2
1 changed files with 1 additions and 1 deletions

View File

@ -4123,13 +4123,13 @@ TOOLBAR_MouseMove (HWND hwnd, WPARAM wParam, LPARAM lParam)
if (nHit >= 0) if (nHit >= 0)
{ {
btnPtr = &infoPtr->buttons[nHit]; btnPtr = &infoPtr->buttons[nHit];
btnPtr->bHot = TRUE;
infoPtr->nHotItem = nHit; infoPtr->nHotItem = nHit;
/* only enabled buttons show hot effect */ /* only enabled buttons show hot effect */
if(infoPtr->buttons[nHit].fsState & TBSTATE_ENABLED) if(infoPtr->buttons[nHit].fsState & TBSTATE_ENABLED)
{ {
btnPtr->bHot = TRUE;
InvalidateRect(hwnd, &btnPtr->rect, InvalidateRect(hwnd, &btnPtr->rect,
TOOLBAR_HasText(infoPtr, btnPtr)); TOOLBAR_HasText(infoPtr, btnPtr));
} }