]> git.saurik.com Git - wxWidgets.git/commitdiff
Compilation fix for non-MSW: don't use ProcessCommand().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Sep 2009 13:26:03 +0000 (13:26 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 26 Sep 2009 13:26:03 +0000 (13:26 +0000)
wxControl::ProcessCommand() is MSW-only, use HandleWindowEvent() to fix
compilation under Unix.

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

src/common/combocmn.cpp

index c3a2334c47328083ef5da8000f19a4520c6b674d..5df0a61af55efdc0200ad2e92a0edb0e9f1db3ad 100644 (file)
@@ -1874,7 +1874,7 @@ void wxComboCtrlBase::OnButtonClick()
     {
         wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_DROPDOWN, GetId());
         event.SetEventObject(this);
-        ProcessCommand(event);
+        HandleWindowEvent(event);
 
         ShowPopup();
     }
@@ -2157,7 +2157,7 @@ void wxComboCtrlBase::OnPopupDismiss(bool generateEvent)
     {
         wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_CLOSEUP, GetId());
         event.SetEventObject(this);
-        ProcessCommand(event);
+        HandleWindowEvent(event);
     }
 }