]> git.saurik.com Git - wxWidgets.git/commitdiff
Avoid generating two events on selection (when MSWCommand returns false,
authorJulian Smart <julian@anthemion.co.uk>
Mon, 4 Dec 2006 16:33:51 +0000 (16:33 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Mon, 4 Dec 2006 16:33:51 +0000 (16:33 +0000)
the default window procedure is called in window.cpp and this generates
a further event)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43801 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/combobox.cpp

index c85fcede27c1bdf0b1ee5d97e99c5a10c58dda76..2283515d56bd1e3efdbf486f2f60b45375363a1d 100644 (file)
@@ -364,7 +364,7 @@ bool wxComboBox::MSWCommand(WXUINT param, WXWORD id)
 
     // skip wxChoice version as it would generate its own events for
     // CBN_SELENDOK
-    return wxControl::MSWCommand(param, id);
+    return true;
 }
 
 WXHWND wxComboBox::GetEditHWND() const