From: Włodzimierz Skiba Date: Wed, 10 Nov 2004 19:17:40 +0000 (+0000) Subject: Patch #1053364 - combobox shoult not remember position after clearing. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2549081bd9d8f820df474eed07253e7bf9667371?ds=inline Patch #1053364 - combobox shoult not remember position after clearing. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/msw/combobox.h b/include/wx/msw/combobox.h index dd03fe6e78..49415f636a 100644 --- a/include/wx/msw/combobox.h +++ b/include/wx/msw/combobox.h @@ -95,6 +95,7 @@ public: virtual void SetSelection(int n) { wxChoice::SetSelection(n); } virtual void SetSelection(long from, long to); virtual void SetEditable(bool editable); + virtual void Clear() { wxChoice::Clear(); m_selectionOld = -1; } // implementation only from now on virtual bool MSWCommand(WXUINT param, WXWORD id);