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

enabled.
oldstable
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)
{
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));
}