Some more WXWIN_COMPATIBILITY fixes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-12-06 20:26:55 +00:00
parent 38d24a39d3
commit ca5e9f677a
6 changed files with 24 additions and 12 deletions

View File

@@ -34,11 +34,11 @@ extern void wxFindMaxSize(HWND hwnd, RECT *rect);
#if !USE_SHARED_LIBRARY
IMPLEMENT_DYNAMIC_CLASS(wxScrollBar, wxControl)
#if WXWIN_COMPATIBILITY
BEGIN_EVENT_TABLE(wxScrollBar, wxControl)
#if WXWIN_COMPATIBILITY
EVT_SCROLL(wxScrollBar::OnScroll)
END_EVENT_TABLE()
#endif
END_EVENT_TABLE()
#endif
@@ -183,7 +183,7 @@ void wxScrollBar::MSWOnVScroll(WXWORD wParam, WXWORD pos, WXHWND control)
if (new_pos > maxPos)
new_pos = maxPos;
SetValue(new_pos);
SetThumbPosition(new_pos);
wxScrollEvent event(scrollEvent, m_windowId);
event.SetPosition(new_pos);
event.SetEventObject( this );
@@ -331,7 +331,7 @@ WXHBRUSH wxScrollBar::OnCtlColor(WXHDC pDC, WXHWND pWnd, WXUINT nCtlColor,
void wxScrollBar::Command(wxCommandEvent& event)
{
SetValue(event.m_commandInt);
SetThumbPosition(event.m_commandInt);
ProcessCommand(event);
}