X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12d9e30820444b48882ab9e29139611b99a84495..6dc34ebbd8f787eb42018df5b5fb938c1c7390aa:/contrib/utils/wxrcedit/splittree.cpp diff --git a/contrib/utils/wxrcedit/splittree.cpp b/contrib/utils/wxrcedit/splittree.cpp index c5499bb059..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() ); } } @@ -403,7 +408,7 @@ void wxTreeCompanionWindow::OnPaint(wxPaintEvent& event) if (!m_treeCtrl) return; - wxPen pen(wxSystemSettings::GetSystemColour(wxSYS_COLOUR_3DLIGHT), 1, wxSOLID); + wxPen pen(wxColour(_T("BLACK")), 1, wxSOLID); dc.SetPen(pen); dc.SetBrush(* wxTRANSPARENT_BRUSH); wxFont font(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT)); @@ -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;