From d50fc4dc6d4832d4678c6e99085198cafaeabb9a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 27 Aug 2011 14:11:09 +0000 Subject: [PATCH] No changes, just fix a typo in wxBannerWindow documentation. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68917 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/treelist.h | 5 ++++- interface/wx/bannerwindow.h | 2 +- samples/treelist/treelist.cpp | 9 ++++++++- 3 files changed, 13 insertions(+), 3 deletions(-) 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) -- 2.45.2