X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..7e02be855d14263c996448bdb56c9e1002ad9b53:/src/msw/combobox.cpp diff --git a/src/msw/combobox.cpp b/src/msw/combobox.cpp index 50681b9440..c8fd88ae27 100644 --- a/src/msw/combobox.cpp +++ b/src/msw/combobox.cpp @@ -748,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 // ----------------------------------------------------------------------------