+// ----------------------------------------------------------------------------
+// wxHtmlListBoxStyle
+// ----------------------------------------------------------------------------
+
+// just forward wxDefaultHtmlRenderingStyle callbacks to the main class so that
+// they could be overridden by the user code
+class wxHtmlListBoxStyle : public wxDefaultHtmlRenderingStyle
+{
+public:
+ wxHtmlListBoxStyle(wxHtmlListBox& hlbox) : m_hlbox(hlbox) { }
+
+ virtual wxColour GetSelectedTextColour(const wxColour& colFg)
+ {
+ return m_hlbox.GetSelectedTextColour(colFg);
+ }
+
+ virtual wxColour GetSelectedTextBgColour(const wxColour& colBg)
+ {
+ return m_hlbox.GetSelectedTextBgColour(colBg);
+ }
+
+private:
+ const wxHtmlListBox& m_hlbox;
+
+ DECLARE_NO_COPY_CLASS(wxHtmlListBoxStyle)
+};
+
+
+// ----------------------------------------------------------------------------
+// event tables
+// ----------------------------------------------------------------------------
+
+BEGIN_EVENT_TABLE(wxHtmlListBox, wxVListBox)
+ EVT_SIZE(wxHtmlListBox::OnSize)
+END_EVENT_TABLE()
+