diff --git a/include/wx/treelist.h b/include/wx/treelist.h index 4e82b3f229..1016e262c1 100644 --- a/include/wx/treelist.h +++ b/include/wx/treelist.h @@ -47,7 +47,10 @@ enum wxTL_DEFAULT_STYLE = wxTL_SINGLE, wxTL_STYLE_MASK = wxTL_SINGLE | - wxTL_CHECKBOX + wxTL_MULTIPLE | + wxTL_CHECKBOX | + wxTL_3STATE | + wxTL_USER_3STATE }; // ---------------------------------------------------------------------------- diff --git a/interface/wx/bannerwindow.h b/interface/wx/bannerwindow.h index 50f70bb3b7..e91073ff3a 100644 --- a/interface/wx/bannerwindow.h +++ b/interface/wx/bannerwindow.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////////// -// Name: interface.wx/bannerwindow.h +// Name: interface/wx/bannerwindow.h // Purpose: wxBannerWindow class documentation // Author: Vadim Zeitlin // Created: 2011-08-16 diff --git a/samples/treelist/treelist.cpp b/samples/treelist/treelist.cpp index fc614dc596..4ee77cc33d 100644 --- a/samples/treelist/treelist.cpp +++ b/samples/treelist/treelist.cpp @@ -499,7 +499,14 @@ const char* MyFrame::CheckedStateString(wxCheckBoxState state) void MyFrame::OnSelectionChanged(wxTreeListEvent& event) { - wxLogMessage("Selection changed to \"%s\"", DumpItem(event.GetItem())); + const char* msg; + + if ( m_treelist->HasFlag(wxTL_MULTIPLE) ) + msg = "Selection of the \"%s\" item changed."; + else + msg = "Selection changed, now is \"%s\"."; + + wxLogMessage(msg, DumpItem(event.GetItem())); } void MyFrame::OnItemExpanding(wxTreeListEvent& event)