Commit 97ecd468 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

comctl32/toolbar: Use already cached control window style.

parent b9760069
......@@ -3612,7 +3612,7 @@ TOOLBAR_GetState (const TOOLBAR_INFO *infoPtr, WPARAM wParam)
static LRESULT
TOOLBAR_GetStyle (const TOOLBAR_INFO *infoPtr)
{
return GetWindowLongW(infoPtr->hwndSelf, GWL_STYLE);
return infoPtr->dwStyle;
}
......@@ -5491,7 +5491,7 @@ TOOLBAR_LButtonDblClk (TOOLBAR_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
if (nHit >= 0)
TOOLBAR_LButtonDown (infoPtr, wParam, lParam);
else if (GetWindowLongW (infoPtr->hwndSelf, GWL_STYLE) & CCS_ADJUSTABLE)
else if (infoPtr->dwStyle & CCS_ADJUSTABLE)
TOOLBAR_Customize (infoPtr);
return 0;
......
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