X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-redboot.git;a=blobdiff_plain;f=tools%2Fsrc%2Ftools%2Fconfigtool%2Fstandalone%2Fwxwin%2Fsplittree.cpp;fp=tools%2Fsrc%2Ftools%2Fconfigtool%2Fstandalone%2Fwxwin%2Fsplittree.cpp;h=70701e15c1f3507a0363740434310674d9e7bb60;hp=48cf4a44124c854b3542425b969fcbd73eb2907e;hb=7a4ea0a4d67744fd3f6b5f207d857005fc707b46;hpb=f0c1bd5d9f8457be4a43912a28ca2df207a7f5a4 diff --git a/tools/src/tools/configtool/standalone/wxwin/splittree.cpp b/tools/src/tools/configtool/standalone/wxwin/splittree.cpp index 48cf4a44..70701e15 100644 --- a/tools/src/tools/configtool/standalone/wxwin/splittree.cpp +++ b/tools/src/tools/configtool/standalone/wxwin/splittree.cpp @@ -78,9 +78,9 @@ END_EVENT_TABLE() wxRemotelyScrolledTreeCtrl::wxRemotelyScrolledTreeCtrl(wxWindow* parent, wxWindowID id, const wxPoint& pt, const wxSize& sz, long style): wxTreeCtrl(parent, id, pt, sz, style -#if wxVERSION_NUMBER > 2301 +#if wxVERSON_NUMBER > 2301 & ~wxTR_ROW_LINES -#endif +#endif ) { m_companionWindow = NULL; @@ -115,10 +115,7 @@ void wxRemotelyScrolledTreeCtrl::SetScrollbars(int pixelsPerUnitX, int pixelsPer if (IsKindOf(CLASSINFO(wxGenericTreeCtrl))) { wxGenericTreeCtrl* win = (wxGenericTreeCtrl*) this; - // Pass TRUE for noRefresh so that it doesn't - // draw part of the tree as if the scroll view is - // at zero vertically. - win->wxGenericTreeCtrl::SetScrollbars(pixelsPerUnitX, pixelsPerUnitY, noUnitsX, 0, xPos, 0, /* noRefresh */ TRUE); + win->wxGenericTreeCtrl::SetScrollbars(pixelsPerUnitX, 0, noUnitsX, 0, xPos, 0, noRefresh); ecScrolledWindow* scrolledWindow = GetScrolledWindow(); if (scrolledWindow)