X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/91b8de8dee3e7ae3c4edc0ab0923b84bba20d9c4..5ea4780630b335a1b8b2d3a94c0b82e46f4c56f6:/include/wx/generic/treectrl.h diff --git a/include/wx/generic/treectrl.h b/include/wx/generic/treectrl.h index 6a8a31c707..ba5bb3ef6d 100644 --- a/include/wx/generic/treectrl.h +++ b/include/wx/generic/treectrl.h @@ -31,6 +31,9 @@ WXDLLEXPORT_DATA(extern const char*) wxTreeCtrlNameStr; #include "wx/pen.h" #include "wx/dynarray.h" +//those defines should only be done in generic/treectrl.h, +//because wxMSW doesn't allow mutiple selection + #ifndef wxTR_SINGLE #define wxTR_SINGLE 0x0000 #define wxTR_MULTIPLE 0x0020 @@ -435,7 +438,7 @@ public: void Unselect(); void UnselectAll(); // select this item - void SelectItem(const wxTreeItemId& item, bool unselect_others=true, bool extended_select=false); + void SelectItem(const wxTreeItemId& item, bool unselect_others=TRUE, bool extended_select=FALSE); // make sure this item is visible (expanding the parent item and/or // scrolling to this item if necessary) void EnsureVisible(const wxTreeItemId& item);