right clicking outside any column sets the column in the list event to -1, not the last column

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14554 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-03-11 12:32:56 +00:00
parent 0fe5e8fea0
commit 62313c2788
3 changed files with 12 additions and 5 deletions

View File

@@ -631,7 +631,10 @@ void MyListCtrl::OnColClick(wxListEvent& event)
void MyListCtrl::OnColRightClick(wxListEvent& event)
{
int col = event.GetColumn();
SetColumnImage(col, -1);
if ( col != -1 )
{
SetColumnImage(col, -1);
}
wxLogMessage( wxT("OnColumnRightClick at %d."), event.GetColumn() );
}