From: Vadim Zeitlin Date: Fri, 30 Jun 2006 23:00:11 +0000 (+0000) Subject: we don't need to override MSWTranslateMessage(), it was a wrong workaround for the... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b3e5d05894c018ea50d92de6249aa09d211e2ef7 we don't need to override MSWTranslateMessage(), it was a wrong workaround for the bug fixed in rev 1.41 of src/msw/evtloop.cpp git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/notebook.h b/include/wx/msw/notebook.h index fa7da1658c..2075b5fe62 100644 --- a/include/wx/msw/notebook.h +++ b/include/wx/msw/notebook.h @@ -156,7 +156,6 @@ public: virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result); virtual bool MSWOnScroll(int orientation, WXWORD nSBCode, WXWORD pos, WXHWND control); - virtual bool MSWTranslateMessage(WXMSG *wxmsg); #if wxUSE_CONSTRAINTS virtual void SetConstraintSizes(bool recurse = true); diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index b569568e7a..97e0049061 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -1056,25 +1056,6 @@ void wxNotebook::OnSelChange(wxNotebookEvent& event) event.Skip(); } -bool wxNotebook::MSWTranslateMessage(WXMSG *wxmsg) -{ - const MSG * const msg = (MSG *)wxmsg; - - // intercept TAB, CTRL+TAB and CTRL+SHIFT+TAB for processing by wxNotebook. - // TAB will be passed to the currently selected page, CTRL+TAB and - // CTRL+SHIFT+TAB will be processed by the notebook itself. do not - // intercept SHIFT+TAB. This goes to the parent of the notebook which will - // process it. - if ( msg->message == WM_KEYDOWN && msg->wParam == VK_TAB && - msg->hwnd == GetHwnd() && - (wxIsCtrlDown() || !wxIsShiftDown()) ) - { - return MSWProcessMessage(wxmsg); - } - - return false; -} - void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event) { if ( event.IsWindowChange() ) {