From a10c8e43d0024c99cc55ed18bd231431da33de31 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Tue, 17 Feb 2009 09:53:19 +0000 Subject: [PATCH] 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 --- samples/treectrl/treetest.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/treectrl/treetest.cpp b/samples/treectrl/treetest.cpp index 1daf446075..759c7c5067 100644 --- a/samples/treectrl/treetest.cpp +++ b/samples/treectrl/treetest.cpp @@ -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)