From db615bc523115c571f06475751098c9c465dffaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Fri, 30 Apr 2004 09:55:16 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20TB=5FGETSTYLE=20to=20return=20the=20style?= =?UTF-8?q?=20of=20the=20toolbar=20when=20wParam=20is=200.=20Spotted=20by?= =?UTF-8?q?=20Maxime=20Belleng=EF=BF=BD=20.?= =?UTF-8?q?=20Fixes=20bug=20#290.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit svn path=/trunk/; revision=9250 --- reactos/lib/comctl32/toolbar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/lib/comctl32/toolbar.c b/reactos/lib/comctl32/toolbar.c index c0c775b20e8..5362291e53b 100644 --- a/reactos/lib/comctl32/toolbar.c +++ b/reactos/lib/comctl32/toolbar.c @@ -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;