]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
Attempt to make wxWindows play better with XP themes
[wxWidgets.git] / src / msw / listbox.cpp
index 655dea67220d5958f65c2bb76c92ce53f8ab5af9..4d31896890d4cb253ac1f1659449a40a0975af51 100644 (file)
     #include  "wx/ownerdrw.h"
 #endif
 
-#ifndef __TWIN32__
-    #ifdef __GNUWIN32_OLD__
-        #include "wx/msw/gnuwin32/extra.h"
-    #endif
+#ifdef __GNUWIN32_OLD__
+    #include "wx/msw/gnuwin32/extra.h"
 #endif
 
 IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControl)
@@ -159,7 +157,7 @@ bool wxListBox::Create(wxWindow *parent,
     wstyle |= LBS_NOINTEGRALHEIGHT;
 
     WXDWORD exStyle = 0;
-    (void) MSWGetStyle(style, & exStyle) ;
+    (void) MSWGetStyle(m_windowStyle, & exStyle) ;
 
     m_hWnd = (WXHWND)::CreateWindowEx(exStyle, wxT("LISTBOX"), NULL,
             wstyle ,