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:
@@ -156,7 +156,6 @@ public:
|
|||||||
virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
|
virtual bool MSWOnNotify(int idCtrl, WXLPARAM lParam, WXLPARAM *result);
|
||||||
virtual bool MSWOnScroll(int orientation, WXWORD nSBCode,
|
virtual bool MSWOnScroll(int orientation, WXWORD nSBCode,
|
||||||
WXWORD pos, WXHWND control);
|
WXWORD pos, WXHWND control);
|
||||||
virtual bool MSWTranslateMessage(WXMSG *wxmsg);
|
|
||||||
|
|
||||||
#if wxUSE_CONSTRAINTS
|
#if wxUSE_CONSTRAINTS
|
||||||
virtual void SetConstraintSizes(bool recurse = true);
|
virtual void SetConstraintSizes(bool recurse = true);
|
||||||
|
@@ -1056,25 +1056,6 @@ void wxNotebook::OnSelChange(wxNotebookEvent& event)
|
|||||||
event.Skip();
|
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)
|
void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event)
|
||||||
{
|
{
|
||||||
if ( event.IsWindowChange() ) {
|
if ( event.IsWindowChange() ) {
|
||||||
|
Reference in New Issue
Block a user