count/2 + NUM_LINES_TO_SAMPLE/2);
// use the height of the lines we looked as the average
- m_heightTotal = ((float)m_heightTotal / (3*NUM_LINES_TO_SAMPLE)) *
- m_lineMax;
+ m_heightTotal = (wxCoord)
+ (((float)m_heightTotal / (3*NUM_LINES_TO_SAMPLE)) * m_lineMax);
}
RefreshRect(rect);
}
+void wxVScrolledWindow::RefreshAll()
+{
+ UpdateScrollbar();
+
+ Refresh();
+}
+
int wxVScrolledWindow::HitTest(wxCoord WXUNUSED(x), wxCoord y) const
{
const size_t lineMax = GetLastVisibleLine();
}
ScrollToLine(lineFirstNew);
+
+#ifdef __WXMAC__
+ Update();
+#endif // __WXMAC__
}