Compilation fix for non-MSW: don't use ProcessCommand().

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
This commit is contained in:
Vadim Zeitlin 2009-09-26 13:26:03 +00:00
parent ddbc8ac9ca
commit 65702d2fe9

View 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);
}
}