OK, wxMSW doesn't seem to send the end label edit event

for wxListCtrls if the label editing was cancelled.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@21699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2003-07-06 11:49:43 +00:00
parent 3a547e0e37
commit 90dab4e65a

View File

@@ -3096,6 +3096,10 @@ bool wxListMainWindow::OnRenameAccept(size_t itemEdit, const wxString& value)
void wxListMainWindow::OnRenameCancelled(size_t itemEdit)
{
// wxMSW seems not to notify the program about
// cancelled label edits.
return;
// let owner know that the edit was cancelled
wxListEvent le( wxEVT_COMMAND_LIST_END_LABEL_EDIT, GetParent()->GetId() );