]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
Finished review/fixes of GDI category of functions and macros.
[wxWidgets.git] / src / msw / listbox.cpp
index b68359e3e2b78ee44ed8723530e75f993772ef10..5a93bc577c3e8e022510a5acafd1469151cec212 100644 (file)
@@ -32,6 +32,7 @@
 #endif
 
 #include "wx/msw/private.h"
 #endif
 
 #include "wx/msw/private.h"
+#include "wx/msw/dc.h"
 
 #include <windowsx.h>
 
 
 #include <windowsx.h>
 
@@ -198,7 +199,7 @@ bool wxListBox::Create(wxWindow *parent,
 
 wxListBox::~wxListBox()
 {
 
 wxListBox::~wxListBox()
 {
-    Free();
+    Clear();
 }
 
 WXDWORD wxListBox::MSWGetStyle(long style, WXDWORD *exstyle) const
 }
 
 WXDWORD wxListBox::MSWGetStyle(long style, WXDWORD *exstyle) const
@@ -658,7 +659,7 @@ bool wxListBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
 
     event.SetInt(n);
 
 
     event.SetInt(n);
 
-    return GetEventHandler()->ProcessEvent(event);
+    return HandleWindowEvent(event);
 }
 
 // ----------------------------------------------------------------------------
 }
 
 // ----------------------------------------------------------------------------