]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
fix compilation problem, pass 2
[wxWidgets.git] / src / msw / combobox.cpp
index ca8e3d4af2ff2fc3f8228f43f9e65e2eaaec3228..c8fd88ae27522c267667743c5231c05d0db96880 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "combobox.h"
-#endif
-
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -752,6 +748,23 @@ int wxComboBox::GetSelection() const
     return wxChoice::GetSelection();
 }
 
+void wxComboBox::Clear()
+{
+    wxChoice::Clear();
+    m_selectionOld = -1;
+    m_value.clear();
+}
+
+// ----------------------------------------------------------------------------
+// overridden wxChoice methods
+// ----------------------------------------------------------------------------
+
+void wxComboBox::SetSelection(int n)
+{
+    wxChoice::SetSelection(n);
+    m_selectionOld = n;
+}
+
 // ----------------------------------------------------------------------------
 // standard event handling
 // ----------------------------------------------------------------------------