wxWindow::MSWOnHScroll changed to call the default handler if the message isn't
processed (earlier it wasn't called in some cases) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2608,11 +2608,13 @@ void wxWindow::MSWOnHScroll( WXWORD wParam, WXWORD pos, WXHWND control)
|
|||||||
if (control)
|
if (control)
|
||||||
{
|
{
|
||||||
wxWindow *child = wxFindWinFromHandle(control);
|
wxWindow *child = wxFindWinFromHandle(control);
|
||||||
if ( child )
|
if ( child ) {
|
||||||
child->MSWOnHScroll(wParam, pos, control);
|
child->MSWOnHScroll(wParam, pos, control);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
wxScrollEvent event;
|
wxScrollEvent event;
|
||||||
event.SetPosition(pos);
|
event.SetPosition(pos);
|
||||||
event.SetOrientation(wxHORIZONTAL);
|
event.SetOrientation(wxHORIZONTAL);
|
||||||
@@ -2651,9 +2653,14 @@ void wxWindow::MSWOnHScroll( WXWORD wParam, WXWORD pos, WXHWND control)
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
if (!GetEventHandler()->ProcessEvent(event))
|
|
||||||
|
if ( GetEventHandler()->ProcessEvent(event) )
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// call the default WM_HSCROLL handler: it's non trivial in some common
|
||||||
|
// controls (up-down control for example)
|
||||||
Default();
|
Default();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user