X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a62da4c56f4bbfcd42ba85ba2a7b0dc6c5bc2af9..6dc34ebbd8f787eb42018df5b5fb938c1c7390aa:/contrib/utils/wxrcedit/splittree.cpp diff --git a/contrib/utils/wxrcedit/splittree.cpp b/contrib/utils/wxrcedit/splittree.cpp index cb4ab5f7c2..b2796bd6ee 100644 --- a/contrib/utils/wxrcedit/splittree.cpp +++ b/contrib/utils/wxrcedit/splittree.cpp @@ -37,6 +37,11 @@ #include "wx/generic/treectlg.h" +#ifdef __WXMSW__ +#include "windows.h" +#include "wx/msw/winundef.h" +#endif + #include "splittree.h" /* @@ -170,7 +175,7 @@ void wxRemotelyScrolledTreeCtrl::PrepareDC(wxDC& dc) scrolledWindow->GetScrollPixelsPerUnit(& xppu2, & yppu2); dc.SetDeviceOrigin( -startX * xppu1, -startY * yppu2 ); - dc.SetUserScale( win->GetScaleX(), win->GetScaleY() ); + //dc.SetUserScale( win->GetScaleX(), win->GetScaleY() ); } } @@ -576,7 +581,7 @@ void wxSplitterScrolledWindow::OnScroll(wxScrollWinEvent& event) int orient = event.GetOrientation(); - int nScrollInc = CalcScrollInc(event); + int nScrollInc = 16;// FIXME CalcScrollInc(event); if (nScrollInc == 0) { inOnScroll = FALSE;