git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12855
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxTreeCtrl::OnPaint(event);
wxTreeCtrl::OnPaint(event);
+ // The generic tree already knows how to draw lines
+#ifdef __WXMSW__
if ((GetWindowStyle() & wxTR_ROW_LINES) == 0)
if ((GetWindowStyle() & wxTR_ROW_LINES) == 0)
// Reset the device origin since it may have been set
dc.SetDeviceOrigin(0, 0);
// Reset the device origin since it may have been set
dc.SetDeviceOrigin(0, 0);
cy = itemRect.GetBottom();
dc.DrawLine(0, cy, clientSize.x, cy);
}
cy = itemRect.GetBottom();
dc.DrawLine(0, cy, clientSize.x, cy);
}