Fix TB_GETSTYLE to return the style of the toolbar when wParam is 0.

Spotted by Maxime Belleng� <[email protected]>.
Fixes bug #290.

svn path=/trunk/; revision=9250
This commit is contained in:
Gé van Geldorp
2004-04-30 09:55:16 +00:00
parent 8d041e5355
commit db615bc523
+2
View File
@@ -3494,6 +3494,8 @@ TOOLBAR_GetStyle (HWND hwnd, WPARAM wParam, LPARAM lParam)
TOOLBAR_INFO *infoPtr = TOOLBAR_GetInfoPtr (hwnd);
INT nIndex;
if (wParam == 0) return GetWindowLongW(hwnd, GWL_STYLE);
nIndex = TOOLBAR_GetButtonIndex (infoPtr, (INT)wParam, FALSE);
if (nIndex == -1)
return -1;