git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12670
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- sbMax = wMain.GetID()->GetScrollRange(wxHORIZONTAL);
- sbThumb = wMain.GetID()->GetScrollThumb(wxHORIZONTAL);
- if ((sbMax != H_SCROLL_MAX) || (sbThumb != H_SCROLL_STEP)) {
- wMain.GetID()->SetScrollbar(wxHORIZONTAL, 0, H_SCROLL_STEP, H_SCROLL_MAX);
- modified = true;
+ if (horizontalScrollBarVisible) {
+ sbMax = wMain.GetID()->GetScrollRange(wxHORIZONTAL);
+ sbThumb = wMain.GetID()->GetScrollThumb(wxHORIZONTAL);
+ if ((sbMax != H_SCROLL_MAX) || (sbThumb != H_SCROLL_STEP)) {
+ wMain.GetID()->SetScrollbar(wxHORIZONTAL, 0, H_SCROLL_STEP, H_SCROLL_MAX);
+ modified = true;
+ }
- sbMax = wMain.GetID()->GetScrollRange(wxHORIZONTAL);
- sbThumb = wMain.GetID()->GetScrollThumb(wxHORIZONTAL);
- if ((sbMax != H_SCROLL_MAX) || (sbThumb != H_SCROLL_STEP)) {
- wMain.GetID()->SetScrollbar(wxHORIZONTAL, 0, H_SCROLL_STEP, H_SCROLL_MAX);
- modified = true;
+ if (horizontalScrollBarVisible) {
+ sbMax = wMain.GetID()->GetScrollRange(wxHORIZONTAL);
+ sbThumb = wMain.GetID()->GetScrollThumb(wxHORIZONTAL);
+ if ((sbMax != H_SCROLL_MAX) || (sbThumb != H_SCROLL_STEP)) {
+ wMain.GetID()->SetScrollbar(wxHORIZONTAL, 0, H_SCROLL_STEP, H_SCROLL_MAX);
+ modified = true;
+ }