comctl32/toolbar: Use already cached control window style.

This commit is contained in:
Nikolay Sivov 2009-05-18 19:36:26 +04:00 committed by Alexandre Julliard
parent b97600699a
commit 97ecd468c4
1 changed files with 2 additions and 2 deletions

View File

@ -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;