]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/listbox.cpp
Add doc for wxGraphicsContext.Create(), which is a lightweight context with no target...
[wxWidgets.git] / src / univ / listbox.cpp
index 520ae86b20c61e16a44417ddee3e0ee08781e2d7..ff9b6eb9f56054f6a6b598b21b481cc17ba33e60 100644 (file)
@@ -97,8 +97,6 @@ protected:
 // implementation of wxListBox
 // ============================================================================
 
-IMPLEMENT_DYNAMIC_CLASS(wxListBox, wxControlWithItems)
-
 BEGIN_EVENT_TABLE(wxListBox, wxListBoxBase)
     EVT_SIZE(wxListBox::OnSize)
 END_EVENT_TABLE()
@@ -1094,7 +1092,7 @@ void wxListBox::SelectAndNotify(int item)
 {
     DoSelect(item);
 
-    SendEvent(wxEVT_COMMAND_LISTBOX_SELECTED);
+    SendEvent(wxEVT_LISTBOX);
 }
 
 void wxListBox::Activate(int item)
@@ -1113,7 +1111,7 @@ void wxListBox::Activate(int item)
     {
         DoSelect(item);
 
-        SendEvent(wxEVT_COMMAND_LISTBOX_DOUBLECLICKED);
+        SendEvent(wxEVT_LISTBOX_DCLICK);
     }
 }