int orient = event.GetOrientation();
if (orient == wxHORIZONTAL)
{
- // Don't 'skip' or we'd get into infinite recursion
+ event.Skip();
return;
}
wxScrolledWindow* scrollWin = GetScrolledWindow();
dc.DrawLine(0, cy, clientSize.x, cy);
}
}
- if (m_treeCtrl->GetBoundingRect(lastH, itemRect))
+ if (lastH.IsOk() && m_treeCtrl->GetBoundingRect(lastH, itemRect))
{
cy = itemRect.GetBottom();
dc.DrawLine(0, cy, clientSize.x, cy);
int orient = event.GetOrientation();
if (orient == wxHORIZONTAL)
{
- // Don't 'skip' or we'd get into infinite recursion
+ event.Skip();
return;
}
if (!m_treeCtrl)
if (orient == wxHORIZONTAL)
{
+ inOnScroll = FALSE;
+ event.Skip();
+ return;
+#if 0
int newPos = m_xScrollPosition + nScrollInc;
SetScrollPos(wxHORIZONTAL, newPos, TRUE );
+#endif
}
else
{