+ wxHtmlCell *m_cells[SIZE];
+
+ // the index of the currently cached item (only valid if m_cells != NULL)
+ size_t m_items[SIZE];
+};
+
+// ----------------------------------------------------------------------------
+// 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;