Nikolay Sivov : comctl32/toolbar: Use already cached control window style.

Alexandre Julliard julliard at winehq.org
Tue May 19 09:23:08 CDT 2009


Module: wine
Branch: master
Commit: 97ecd468c49c8490a7a287428869a64f20a1f0ab
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=97ecd468c49c8490a7a287428869a64f20a1f0ab

Author: Nikolay Sivov <bunglehead at gmail.com>
Date:   Mon May 18 19:36:26 2009 +0400

comctl32/toolbar: Use already cached control window style.

---

 dlls/comctl32/toolbar.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/comctl32/toolbar.c b/dlls/comctl32/toolbar.c
index f1c3fa7..097d628 100644
--- a/dlls/comctl32/toolbar.c
+++ b/dlls/comctl32/toolbar.c
@@ -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;




More information about the wine-cvs mailing list