]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
Smooth Aqua buttons in wxTreeCtrl.
[wxWidgets.git] / src / msw / treectrl.cpp
index 69ff37efc2366f901da016a18737628d7aa90e94..a0713416ab5ac9ad518d8d530fe84f9afbabc35e 100644 (file)
@@ -47,6 +47,7 @@
 
 #if defined(__WIN95__)
 
+#include "wx/app.h"
 #include "wx/log.h"
 #include "wx/dynarray.h"
 #include "wx/imaglist.h"
@@ -546,6 +547,13 @@ bool wxTreeCtrl::Create(wxWindow *parent,
 
     if ( m_windowStyle & wxTR_LINES_AT_ROOT )
         wstyle |= TVS_LINESATROOT;
+    
+    if ( m_windowStyle & wxTR_FULL_ROW_HIGHLIGHT )
+    {    
+        if ( wxTheApp->GetComCtl32Version() >= 471 )
+            wstyle |= TVS_FULLROWSELECT;
+    }
+
 
     // using TVS_CHECKBOXES for emulation of a multiselection tree control
     // doesn't work without the new enough headers