Commit ee1c5780 authored by Maxime Bellengé's avatar Maxime Bellengé Committed by Alexandre Julliard

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

style of a button.
parent aff2e2e5
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment