Invalid buttons are "hidden".
This commit is contained in:
parent
4dc1892a06
commit
bc2ae78bee
|
@ -2945,7 +2945,7 @@ TOOLBAR_IsButtonHidden (HWND hwnd, WPARAM wParam, LPARAM lParam)
|
|||
|
||||
nIndex = TOOLBAR_GetButtonIndex (infoPtr, (INT)wParam);
|
||||
if (nIndex == -1)
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
|
||||
return (infoPtr->buttons[nIndex].fsState & TBSTATE_HIDDEN);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue