add event.Skip() in EVT_CONTEXT_MENU handler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
6089c4c8e8
commit
a10c8e43d0
@ -1496,6 +1496,8 @@ void MyTreeCtrl::OnContextMenu(wxContextMenuEvent& event)
|
||||
wxPoint pt = event.GetPosition();
|
||||
|
||||
wxLogMessage(wxT("OnContextMenu at screen coords (%i, %i)"), pt.x, pt.y);
|
||||
|
||||
event.Skip();
|
||||
}
|
||||
|
||||
void MyTreeCtrl::ShowMenu(wxTreeItemId id, const wxPoint& pt)
|
||||
|
Loading…
Reference in New Issue
Block a user