]> git.saurik.com Git - wxWidgets.git/commitdiff
do not use HDS_FLAT by default
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Thu, 5 Mar 2009 21:47:59 +0000 (21:47 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Thu, 5 Mar 2009 21:47:59 +0000 (21:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/headerctrl.cpp

index 1eb17c1e8e5162cfbb0830a7d0f42940bf476a45..5ed300c44a9ce23dcaa01a2abfc4a3d85f2e8640 100644 (file)
@@ -106,7 +106,9 @@ WXDWORD wxHeaderCtrl::MSWGetStyle(long style, WXDWORD *exstyle) const
     // the control looks nicer with these styles and there doesn't seem to be
     // any reason to not use them so we always do (as for HDS_HORZ it is 0
     // anyhow but include it for clarity)
-    msStyle |= HDS_HORZ | HDS_BUTTONS | HDS_FLAT | HDS_FULLDRAG | HDS_HOTTRACK;
+    // NOTE: don't use however HDS_FLAT because it makes the control look
+    //       non-native when running WinXP in classic mode
+    msStyle |= HDS_HORZ | HDS_BUTTONS | HDS_FULLDRAG | HDS_HOTTRACK;
 
     return msStyle;
 }