]> git.saurik.com Git - wxWidgets.git/commitdiff
add event.Skip() in EVT_CONTEXT_MENU handler
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 Feb 2009 09:53:19 +0000 (09:53 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 17 Feb 2009 09:53:19 +0000 (09:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/treectrl/treetest.cpp

index 1daf44607534838c7e3b4683a5abb0a17ec0445d..759c7c506768422b088c16561637bf340d04fecf 100644 (file)
@@ -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)