refresh cache on size/margins change; expanded cache to contain N elements, not just one

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@20873 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-06-02 23:02:12 +00:00
parent 6af4ea87d0
commit 5ecdc7ab6d
2 changed files with 110 additions and 32 deletions

View File

@@ -62,6 +62,10 @@ public:
// destructor cleans up whatever resources we use
virtual ~wxHtmlListBox();
// refresh everything
virtual void RefreshAll();
protected:
// this method must be implemented in the derived class and should return
// the body (i.e. without <html>) of the HTML for the given item
@@ -77,6 +81,10 @@ protected:
virtual wxCoord OnMeasureItem(size_t n) const;
// event handlers
void OnSize(wxSizeEvent& event);
// common part of all ctors
void Init();
@@ -88,6 +96,9 @@ private:
// HTML parser we use
wxHtmlWinParser *m_htmlParser;
DECLARE_EVENT_TABLE()
};
#endif // _WX_HTMLLBOX_H_