added wxVListBox::OnDrawBackground(); fixed warnings
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -120,6 +120,7 @@ private:
|
||||
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_NO_COPY_CLASS(wxHtmlListBox)
|
||||
};
|
||||
|
||||
#endif // _WX_HTMLLBOX_H_
|
||||
|
@@ -202,6 +202,14 @@ protected:
|
||||
// the base class version doesn't do anything
|
||||
virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const;
|
||||
|
||||
// this method is used to draw the items background and, maybe, a border
|
||||
// around it
|
||||
//
|
||||
// the base class version implements a reasonable default behaviour which
|
||||
// consists in drawing the selected item with the standard background
|
||||
// colour and drawing a border around the item if it is either selected or
|
||||
// current
|
||||
virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const;
|
||||
|
||||
// we implement OnGetLineHeight() in terms of OnMeasureItem() because this
|
||||
// allows us to add borders to the items easily
|
||||
@@ -269,6 +277,7 @@ private:
|
||||
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_NO_COPY_CLASS(wxVListBox)
|
||||
};
|
||||
|
||||
#endif // _WX_VLBOX_H_
|
||||
|
@@ -146,7 +146,8 @@ protected:
|
||||
//
|
||||
// finally note that lineMin is inclusive, while lineMax is exclusive, as
|
||||
// usual
|
||||
virtual void OnGetLinesHint(size_t lineMin, size_t lineMax) const { }
|
||||
virtual void OnGetLinesHint(size_t WXUNUSED(lineMin),
|
||||
size_t WXUNUSED(lineMax)) const { }
|
||||
|
||||
// when the number of lines changes, we try to estimate the total height
|
||||
// of all lines which is a rather expensive operation in terms of lines
|
||||
@@ -194,6 +195,7 @@ private:
|
||||
|
||||
|
||||
DECLARE_EVENT_TABLE()
|
||||
DECLARE_NO_COPY_CLASS(wxVScrolledWindow)
|
||||
};
|
||||
|
||||
#endif // _WX_VSCROLL_H_
|
||||
|
Reference in New Issue
Block a user