- wxRect wndRect = GetRect();
- _foldIcons->Draw(index, dc, wndRect.GetRight() - _iconWidth - _rightIndent, (wndRect.GetHeight() - _iconHeight) / 2,
- wxIMAGELIST_DRAW_TRANSPARENT);
+ if(vertical)
+ m_foldIcons->Draw(index,
+ dc,
+ wndRect.GetRight() - m_iconWidth - m_rightIndent,
+ (wndRect.GetHeight() - m_iconHeight) / 2,
+ wxIMAGELIST_DRAW_TRANSPARENT);
+ else
+ m_foldIcons->Draw(index,
+ dc,
+ (wndRect.GetWidth() - m_iconWidth) / 2,
+ m_rightIndent,
+ wxIMAGELIST_DRAW_TRANSPARENT);