don't refresh the scrollbars unnecessarily
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -729,8 +729,13 @@ void wxWindow::SetScrollPos(int orient, int pos, bool refresh)
|
|||||||
wxCHECK_RET( scrollbar, _T("no scrollbar to set position for") );
|
wxCHECK_RET( scrollbar, _T("no scrollbar to set position for") );
|
||||||
|
|
||||||
scrollbar->SetThumbPosition(pos);
|
scrollbar->SetThumbPosition(pos);
|
||||||
|
|
||||||
|
// VZ: I think we can safely ignore this as we always refresh it
|
||||||
|
// automatically whenever the value chanegs
|
||||||
|
#if 0
|
||||||
if ( refresh )
|
if ( refresh )
|
||||||
Refresh();
|
Refresh();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int wxWindow::GetScrollPos(int orient) const
|
int wxWindow::GetScrollPos(int orient) const
|
||||||
|
Reference in New Issue
Block a user