]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/htmllbox.h
insert missing include file for OpenVMS platforms
[wxWidgets.git] / include / wx / htmllbox.h
index 3ef995e74ee1c3eba53a81ac212a5c97b65c271a..22f453c83c45c29d49950e330a48cd5b436e2dfb 100644 (file)
@@ -302,6 +302,14 @@ protected:
     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;