X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e52cd41e5d10a29632a8d2bc43a741357c9c7074..09b895cb4a954494063eb17d3dc302a654fd99e5:/include/wx/htmllbox.h?ds=sidebyside diff --git a/include/wx/htmllbox.h b/include/wx/htmllbox.h index 21d354080c..a8f41d7f76 100644 --- a/include/wx/htmllbox.h +++ b/include/wx/htmllbox.h @@ -111,8 +111,11 @@ protected: virtual void OnDrawItem(wxDC& dc, const wxRect& rect, size_t n) const; virtual wxCoord OnMeasureItem(size_t n) const; - // This method may be overriden to handle clicking on a link in - // the listbox. By default, clicking links is ignored. + // override this one to draw custom background for selected items correctly + virtual void OnDrawBackground(wxDC& dc, const wxRect& rect, size_t n) const; + + // this method may be overridden to handle clicking on a link in the + // listbox (by default, clicks on links are simply ignored) virtual void OnLinkClicked(size_t n, const wxHtmlLinkInfo& link); // event handlers