X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e0c6027b5a0af9050eca56774967437a66241026..ceb71775b49c111a201765e736f543da72d902e4:/include/wx/htmllbox.h?ds=sidebyside diff --git a/include/wx/htmllbox.h b/include/wx/htmllbox.h index c3764c399d..cd95ee26e9 100644 --- a/include/wx/htmllbox.h +++ b/include/wx/htmllbox.h @@ -36,32 +36,34 @@ public: wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - size_t countItems = 0, long style = 0, const wxString& name = wxVListBoxNameStr) { Init(); - (void)Create(parent, id, pos, size, countItems, style, name); + (void)Create(parent, id, pos, size, style, name); } // really creates the control and sets the initial number of items in it // (which may be changed later with SetItemCount()) // - // there are no special styles defined for wxVListBox + // the only special style which may be specified here is wxLB_MULTIPLE // // returns true on success or false if the control couldn't be created bool Create(wxWindow *parent, wxWindowID id = wxID_ANY, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, - size_t countItems = 0, long style = 0, const wxString& name = wxVListBoxNameStr); // 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 ) of the HTML for the given item @@ -77,6 +79,10 @@ protected: virtual wxCoord OnMeasureItem(size_t n) const; + // event handlers + void OnSize(wxSizeEvent& event); + + // common part of all ctors void Init(); @@ -88,6 +94,9 @@ private: // HTML parser we use wxHtmlWinParser *m_htmlParser; + + + DECLARE_EVENT_TABLE() }; #endif // _WX_HTMLLBOX_H_