added test for cancelled END_EDIT

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24112 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-10-07 09:06:58 +00:00
parent d2ed74b912
commit 1bf37bf5b1

View File

@@ -716,7 +716,9 @@ void MyListCtrl::OnBeginLabelEdit(wxListEvent& event)
void MyListCtrl::OnEndLabelEdit(wxListEvent& event)
{
wxLogMessage( wxT("OnEndLabelEdit: %s"), event.m_item.m_text.c_str());
wxLogMessage( wxT("OnEndLabelEdit: %s"),
event.IsEditCancelled() ? _T("[cancelled]")
: event.m_item.m_text.c_str());
}
void MyListCtrl::OnDeleteItem(wxListEvent& event)