]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/combobox.cpp
compilation fix for Windows after the last change (misplaced #endif)
[wxWidgets.git] / src / msw / combobox.cpp
index 7ae8dfc956e54695c33dd03ce5c3cb43edc1dd01..bc36474d1a465a594df5e43df7e4370c8e74ed15 100644 (file)
@@ -342,8 +342,19 @@ bool wxComboBox::MSWCommand(WXUINT param, WXWORD id)
                 // down is cancelled (see #8474)
                 m_lastAcceptedSelection = wxID_NONE;
             }
+            {
+                wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_DROPDOWN, GetId());
+                event.SetEventObject(this);
+                ProcessCommand(event);
+            }
+            break;
+        case CBN_CLOSEUP:
+            {
+                wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_CLOSEUP, GetId());
+                event.SetEventObject(this);
+                ProcessCommand(event);
+            }
             break;
-
         case CBN_SELENDOK:
 #ifndef __SMARTPHONE__
             // we need to reset this to prevent the selection from being undone