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
This commit is contained in:
Vadim Zeitlin 2006-06-30 23:00:11 +00:00
parent f638866768
commit b3e5d05894
2 changed files with 0 additions and 20 deletions

View File

@ -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);

View File

@ -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() ) {