added RefreshAll()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20870 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -98,6 +98,9 @@ public:
|
|||||||
int HitTest(wxCoord x, wxCoord y) const;
|
int HitTest(wxCoord x, wxCoord y) const;
|
||||||
int HitTest(const wxPoint& pt) const { return HitTest(pt.x, pt.y); }
|
int HitTest(const wxPoint& pt) const { return HitTest(pt.x, pt.y); }
|
||||||
|
|
||||||
|
// recalculate all our parameters and redisplay all lines
|
||||||
|
virtual void RefreshAll();
|
||||||
|
|
||||||
|
|
||||||
// accessors
|
// accessors
|
||||||
// ---------
|
// ---------
|
||||||
|
@@ -196,6 +196,13 @@ void wxVScrolledWindow::RefreshLine(size_t line)
|
|||||||
RefreshRect(rect);
|
RefreshRect(rect);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxVScrolledWindow::RefreshAll()
|
||||||
|
{
|
||||||
|
UpdateScrollbar();
|
||||||
|
|
||||||
|
Refresh();
|
||||||
|
}
|
||||||
|
|
||||||
int wxVScrolledWindow::HitTest(wxCoord WXUNUSED(x), wxCoord y) const
|
int wxVScrolledWindow::HitTest(wxCoord WXUNUSED(x), wxCoord y) const
|
||||||
{
|
{
|
||||||
const size_t lineMax = GetLastVisibleLine();
|
const size_t lineMax = GetLastVisibleLine();
|
||||||
|
Reference in New Issue
Block a user