wxCommandEvent::SetString() change - now uses wxString

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1940 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-03-16 18:54:24 +00:00
parent f42d2aba76
commit 2900641401
14 changed files with 1364 additions and 904 deletions

View File

@@ -41,21 +41,22 @@ bool wxComboBox::MSWCommand(WXUINT param, WXWORD WXUNUSED(id))
wxCommandEvent event(wxEVT_COMMAND_COMBOBOX_SELECTED, m_windowId);
event.SetInt(GetSelection());
event.SetEventObject(this);
event.SetString(copystring(GetStringSelection()));
event.SetString(GetStringSelection());
ProcessCommand(event);
delete[] event.GetString();
return TRUE;
}
else if (param == CBN_EDITCHANGE)
{
wxCommandEvent event(wxEVT_COMMAND_TEXT_UPDATED, m_windowId);
event.SetString(copystring(GetValue()));
event.SetString(GetValue());
event.SetEventObject(this);
ProcessCommand(event);
delete[] event.GetString();
return TRUE;
}
else return FALSE;
else
return FALSE;
}
bool wxComboBox::Create(wxWindow *parent, wxWindowID id,