(void)::SendMessage(GetHwnd(), UDM_SETBUDDY, (WPARAM)GetBuddyHwnd(), 0);
// do it after finishing with m_hwndBuddy creation to avoid generating
- // initial wxEVT_COMMAND_TEXT_UPDATED message
+ // initial wxEVT_TEXT message
ms_allChoiceSpins.Add(this);
// initialize the controls contents
int n = GetSelection();
if (n > -1)
{
- wxCommandEvent event(wxEVT_COMMAND_CHOICE_SELECTED, m_windowId);
+ wxCommandEvent event(wxEVT_CHOICE, m_windowId);
event.SetInt(n);
event.SetEventObject(this);
event.SetString(GetStringSelection());