]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
Added automatic dialog scrolling ability
[wxWidgets.git] / src / msw / listbox.cpp
index b68359e3e2b78ee44ed8723530e75f993772ef10..ae8535a88f56bc271b540938b4be47abd28b84df 100644 (file)
@@ -198,7 +198,7 @@ bool wxListBox::Create(wxWindow *parent,
 
 wxListBox::~wxListBox()
 {
-    Free();
+    Clear();
 }
 
 WXDWORD wxListBox::MSWGetStyle(long style, WXDWORD *exstyle) const
@@ -658,7 +658,7 @@ bool wxListBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
 
     event.SetInt(n);
 
-    return GetEventHandler()->ProcessEvent(event);
+    return HandleWindowEvent(event);
 }
 
 // ----------------------------------------------------------------------------