fixed right click handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10393 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2001-05-31 19:18:44 +00:00
parent 0731c594f4
commit 0d6ae333cd

View File

@ -2258,13 +2258,7 @@ long wxWindow::MSWWindowProc(WXUINT message, WXWPARAM wParam, WXLPARAM lParam)
wxPoint pt(GET_X_LPARAM(lParam), GET_Y_LPARAM(lParam));
wxContextMenuEvent evtCtx(wxEVT_CONTEXT_MENU, GetId(), pt);
GetEventHandler()->ProcessEvent(evtCtx);
// set processed to true even if the event is not handled
// because if we don't windows will propogate the
// WM_CONTEXTMENU up the parent window chain, which we have
// already done ourselves.
processed = true;
processed = GetEventHandler()->ProcessEvent(evtCtx);
}
break;
#endif // __WIN32__