Alexandre Julliard : explorerframe: Correctly initialize common controls.

Alexandre Julliard julliard at winehq.org
Thu Oct 17 13:51:50 CDT 2013


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Oct 17 19:21:49 2013 +0200

explorerframe: Correctly initialize common controls.

---

 dlls/explorerframe/Makefile.in |    2 +-
 dlls/explorerframe/nstc.c      |    5 +++++
 2 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/dlls/explorerframe/Makefile.in b/dlls/explorerframe/Makefile.in
index dc523a1..03f4a23 100644
--- a/dlls/explorerframe/Makefile.in
+++ b/dlls/explorerframe/Makefile.in
@@ -1,5 +1,5 @@
 MODULE    = explorerframe.dll
-IMPORTS   = uuid ole32 shell32 user32
+IMPORTS   = uuid ole32 comctl32 shell32 user32
 
 C_SRCS = \
 	explorerframe_main.c \
diff --git a/dlls/explorerframe/nstc.c b/dlls/explorerframe/nstc.c
index a881cc4..4d977ec 100644
--- a/dlls/explorerframe/nstc.c
+++ b/dlls/explorerframe/nstc.c
@@ -869,6 +869,7 @@ static HRESULT WINAPI NSTC2_fnInitialize(INameSpaceTreeControl2* iface,
     NSTC2Impl *This = impl_from_INameSpaceTreeControl2(iface);
     WNDCLASSW wc;
     DWORD window_style, window_ex_style;
+    INITCOMMONCONTROLSEX icex;
     RECT rc;
     static const WCHAR NSTC2_CLASS_NAME[] =
         {'N','a','m','e','s','p','a','c','e','T','r','e','e',
@@ -882,6 +883,10 @@ static HRESULT WINAPI NSTC2_fnInitialize(INameSpaceTreeControl2* iface,
 
     This->style = nstcsFlags;
 
+    icex.dwSize = sizeof( icex );
+    icex.dwICC = ICC_TREEVIEW_CLASSES;
+    InitCommonControlsEx( &icex );
+
     if(!GetClassInfoW(explorerframe_hinstance, NSTC2_CLASS_NAME, &wc))
     {
         wc.style            = CS_HREDRAW | CS_VREDRAW;




More information about the wine-cvs mailing list