projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
need to overload assertEquals(int,short) too to resolve ambiguity
[wxWidgets.git]
/
include
/
wx
/
htmllbox.h
diff --git
a/include/wx/htmllbox.h
b/include/wx/htmllbox.h
index a8f41d7f76c92f968efcf0c033be6fbe140e991d..22f453c83c45c29d49950e330a48cd5b436e2dfb 100644
(file)
--- a/
include/wx/htmllbox.h
+++ b/
include/wx/htmllbox.h
@@
-25,8
+25,8
@@
class WXDLLIMPEXP_FWD_HTML wxHtmlWinParser;
class WXDLLIMPEXP_FWD_HTML wxHtmlListBoxCache;
class WXDLLIMPEXP_FWD_HTML wxHtmlListBoxStyle;
class WXDLLIMPEXP_FWD_HTML wxHtmlListBoxCache;
class WXDLLIMPEXP_FWD_HTML wxHtmlListBoxStyle;
-extern WXDLLIMPEXP_DATA_HTML(const
wxC
har) wxHtmlListBoxNameStr[];
-extern WXDLLIMPEXP_DATA_HTML(const
wxC
har) wxSimpleHtmlListBoxNameStr[];
+extern WXDLLIMPEXP_DATA_HTML(const
c
har) wxHtmlListBoxNameStr[];
+extern WXDLLIMPEXP_DATA_HTML(const
c
har) wxSimpleHtmlListBoxNameStr[];
// ----------------------------------------------------------------------------
// wxHtmlListBox
// ----------------------------------------------------------------------------
// wxHtmlListBox
@@
-302,6
+302,14
@@
protected:
virtual wxString OnGetItem(size_t n) const
{ return m_items[n]; }
virtual wxString OnGetItem(size_t n) const
{ return m_items[n]; }
+ virtual void InitEvent(wxCommandEvent& event, int n)
+ {
+ // we're not a virtual control and we can include the string
+ // of the item which was clicked:
+ event.SetString(m_items[n]);
+ wxVListBox::InitEvent(event, n);
+ }
+
wxArrayString m_items;
wxArrayPtrVoid m_HTMLclientData;
wxArrayString m_items;
wxArrayPtrVoid m_HTMLclientData;