]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/treectlg.cpp
don't include windows.h unless neccessary
[wxWidgets.git] / src / generic / treectlg.cpp
index edfa1116395a79129b1d5cdcd22331bcf60be5b0..0ebc9aa60b94c012a08a4d1f749e7b87a9733714 100644 (file)
@@ -670,6 +670,7 @@ bool wxGenericTreeCtrl::Create(wxWindow *parent,
     wxGetOsVersion( &major, &minor );
     
     if (style & wxTR_HAS_BUTTONS) style |= wxTR_MAC_BUTTONS;
+    if (style & wxTR_HAS_BUTTONS) style &= ~wxTR_HAS_BUTTONS;
     style &= ~wxTR_LINES_AT_ROOT;
     style |= wxTR_NO_LINES;
     if (major < 10)