]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/listbox.cpp
remove/replace redundant SetAutoLayout() and Fit() calls, leave just SetSizer[AndFit...
[wxWidgets.git] / src / msw / listbox.cpp
index fd421c8467734f234e5e7e3d2f398b5603d2b68d..5a93bc577c3e8e022510a5acafd1469151cec212 100644 (file)
@@ -32,6 +32,7 @@
 #endif
 
 #include "wx/msw/private.h"
+#include "wx/msw/dc.h"
 
 #include <windowsx.h>
 
@@ -198,7 +199,7 @@ bool wxListBox::Create(wxWindow *parent,
 
 wxListBox::~wxListBox()
 {
-    Free();
+    Clear();
 }
 
 WXDWORD wxListBox::MSWGetStyle(long style, WXDWORD *exstyle) const