- wxRect itemRect;
- wxTreeItemId h, lastH;
- for(h=m_treeCtrl->GetFirstVisibleItem();h;h=m_treeCtrl->GetNextVisible(h))
- {
- if (m_treeCtrl->GetBoundingRect(h, itemRect))
- {
- int cy = itemRect.GetTop();
- wxRect drawItemRect(0, cy, clientSize.x, itemRect.GetHeight());
-
- lastH = h;
-
- // Draw the actual item
- DrawItem(dc, h, drawItemRect);
- dc.DrawLine(0, cy, clientSize.x, cy);
- }
- }
- if (lastH.IsOk() && m_treeCtrl->GetBoundingRect(lastH, itemRect))
- {
- int cy = itemRect.GetBottom();
- dc.DrawLine(0, cy, clientSize.x, cy);
- }
+ wxRect itemRect;
+ wxTreeItemId h, lastH;
+ for(h=m_treeCtrl->GetFirstVisibleItem();h;h=m_treeCtrl->GetNextVisible(h))
+ {
+ if (m_treeCtrl->GetBoundingRect(h, itemRect))
+ {
+ int cy = itemRect.GetTop();
+ wxRect drawItemRect(0, cy, clientSize.x, itemRect.GetHeight());
+
+ lastH = h;
+
+ // Draw the actual item
+ DrawItem(dc, h, drawItemRect);
+ dc.DrawLine(0, cy, clientSize.x, cy);
+ }
+ }
+ if (lastH.IsOk() && m_treeCtrl->GetBoundingRect(lastH, itemRect))
+ {
+ int cy = itemRect.GetBottom();
+ dc.DrawLine(0, cy, clientSize.x, cy);
+ }