wxScrolledWindow for wxMSW is now getting wxScrollWinEvents and are

scrolling again.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2521 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 1999-05-20 06:08:28 +00:00
parent 53f7bea59c
commit 9145664b28

View File

@ -1383,7 +1383,7 @@ bool wxWindow::MSWProcessMessage(WXMSG* pMsg)
bool bForward = TRUE, bool bForward = TRUE,
bWindowChange = FALSE; bWindowChange = FALSE;
switch ( msg->wParam ) switch ( msg->wParam )
{ {
case VK_TAB: case VK_TAB:
if ( lDlgCode & DLGC_WANTTAB ) { if ( lDlgCode & DLGC_WANTTAB ) {
@ -3093,7 +3093,7 @@ bool wxWindow::MSWOnScroll(int orientation, WXWORD wParam,
return child->MSWOnScroll(orientation, wParam, pos, control); return child->MSWOnScroll(orientation, wParam, pos, control);
} }
wxScrollEvent event; wxScrollWinEvent event;
event.SetPosition(pos); event.SetPosition(pos);
event.SetOrientation(orientation); event.SetOrientation(orientation);
event.m_eventObject = this; event.m_eventObject = this;
@ -3101,32 +3101,32 @@ bool wxWindow::MSWOnScroll(int orientation, WXWORD wParam,
switch ( wParam ) switch ( wParam )
{ {
case SB_TOP: case SB_TOP:
event.m_eventType = wxEVT_SCROLL_TOP; event.m_eventType = wxEVT_SCROLLWIN_TOP;
break; break;
case SB_BOTTOM: case SB_BOTTOM:
event.m_eventType = wxEVT_SCROLL_BOTTOM; event.m_eventType = wxEVT_SCROLLWIN_BOTTOM;
break; break;
case SB_LINEUP: case SB_LINEUP:
event.m_eventType = wxEVT_SCROLL_LINEUP; event.m_eventType = wxEVT_SCROLLWIN_LINEUP;
break; break;
case SB_LINEDOWN: case SB_LINEDOWN:
event.m_eventType = wxEVT_SCROLL_LINEDOWN; event.m_eventType = wxEVT_SCROLLWIN_LINEDOWN;
break; break;
case SB_PAGEUP: case SB_PAGEUP:
event.m_eventType = wxEVT_SCROLL_PAGEUP; event.m_eventType = wxEVT_SCROLLWIN_PAGEUP;
break; break;
case SB_PAGEDOWN: case SB_PAGEDOWN:
event.m_eventType = wxEVT_SCROLL_PAGEDOWN; event.m_eventType = wxEVT_SCROLLWIN_PAGEDOWN;
break; break;
case SB_THUMBTRACK: case SB_THUMBTRACK:
case SB_THUMBPOSITION: case SB_THUMBPOSITION:
event.m_eventType = wxEVT_SCROLL_THUMBTRACK; event.m_eventType = wxEVT_SCROLLWIN_THUMBTRACK;
break; break;
default: default: