X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c49245f8baabd69afd7302c43474d3bdd247fb89..17aa2bec08161588a3f9d348f13543a7420a4fc4:/src/msw/radiobox.cpp?ds=inline diff --git a/src/msw/radiobox.cpp b/src/msw/radiobox.cpp index 7e44bde49e..bd865c7542 100644 --- a/src/msw/radiobox.cpp +++ b/src/msw/radiobox.cpp @@ -253,7 +253,7 @@ bool wxRadioBox::Create(wxWindow *parent, wxWindowID id, const wxString& title, (WPARAM)font.GetResourceHandle(), 0L); } - m_subControls.Append((wxObject *)(WXWORD)newId); + m_subControls.Append((wxObject *)(WXDWORD)(WXWORD)newId); } // Create a dummy radio control to end the group. @@ -700,6 +700,7 @@ void wxRadioBox::SendNotificationEvent() { wxCommandEvent event(wxEVT_COMMAND_RADIOBOX_SELECTED, m_windowId); event.SetInt( m_selectedButton ); + event.SetString( GetString(m_selectedButton) ); event.SetEventObject( this ); ProcessCommand(event); }