fixed scrollbar refresh
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10931 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fba82cc079
commit
a85c155217
@ -384,12 +384,12 @@ void wxScrollHelper::HandleOnScroll(wxScrollWinEvent& event)
|
||||
if (orient == wxHORIZONTAL)
|
||||
{
|
||||
m_xScrollPosition += nScrollInc;
|
||||
m_targetWindow->SetScrollPos(wxHORIZONTAL, m_xScrollPosition, FALSE);
|
||||
m_targetWindow->SetScrollPos(wxHORIZONTAL, m_xScrollPosition);
|
||||
}
|
||||
else
|
||||
{
|
||||
m_yScrollPosition += nScrollInc;
|
||||
m_targetWindow->SetScrollPos(wxVERTICAL, m_yScrollPosition, FALSE);
|
||||
m_targetWindow->SetScrollPos(wxVERTICAL, m_yScrollPosition);
|
||||
}
|
||||
|
||||
bool needsRefresh = FALSE;
|
||||
@ -677,7 +677,7 @@ void wxScrollHelper::Scroll( int x_pos, int y_pos )
|
||||
m_xScrollPosition = wxMax( 0, m_xScrollPosition );
|
||||
|
||||
if (old_x != m_xScrollPosition) {
|
||||
m_targetWindow->SetScrollPos( wxHORIZONTAL, m_xScrollPosition, FALSE );
|
||||
m_targetWindow->SetScrollPos( wxHORIZONTAL, m_xScrollPosition );
|
||||
m_targetWindow->ScrollWindow( (old_x-m_xScrollPosition)*m_xScrollPixelsPerLine, 0,
|
||||
GetRect() );
|
||||
}
|
||||
@ -698,7 +698,7 @@ void wxScrollHelper::Scroll( int x_pos, int y_pos )
|
||||
m_yScrollPosition = wxMax( 0, m_yScrollPosition );
|
||||
|
||||
if (old_y != m_yScrollPosition) {
|
||||
m_targetWindow->SetScrollPos( wxVERTICAL, m_yScrollPosition, FALSE );
|
||||
m_targetWindow->SetScrollPos( wxVERTICAL, m_yScrollPosition );
|
||||
m_targetWindow->ScrollWindow( 0, (old_y-m_yScrollPosition)*m_yScrollPixelsPerLine,
|
||||
GetRect() );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user