Fix TB_GETSTYLE message to return the style of the toolbar and not the

style of a button.
This commit is contained in:
Maxime Bellengé 2004-05-02 04:21:01 +00:00 committed by Alexandre Julliard
parent aff2e2e5e6
commit ee1c578017
1 changed files with 1 additions and 8 deletions

View File

@ -3488,14 +3488,7 @@ TOOLBAR_GetState (HWND hwnd, WPARAM wParam, LPARAM lParam)
static LRESULT
TOOLBAR_GetStyle (HWND hwnd, WPARAM wParam, LPARAM lParam)
{
TOOLBAR_INFO *infoPtr = TOOLBAR_GetInfoPtr (hwnd);
INT nIndex;
nIndex = TOOLBAR_GetButtonIndex (infoPtr, (INT)wParam, FALSE);
if (nIndex == -1)
return -1;
return infoPtr->buttons[nIndex].fsStyle;
return GetWindowLongW(hwnd, GWL_STYLE);
}