X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b0b5881aeaef69976ed1693ab0423187a8bcd53c..refs/heads/master:/src/os2/radiobut.cpp diff --git a/src/os2/radiobut.cpp b/src/os2/radiobut.cpp index 81d6d46344..27435fdc1c 100644 --- a/src/os2/radiobut.cpp +++ b/src/os2/radiobut.cpp @@ -4,7 +4,6 @@ // Author: David Webster // Modified by: // Created: 10/12/99 -// RCS-ID: $Id$ // Copyright: (c) David Webster // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -27,8 +26,6 @@ #include "wx/os2/private.h" -IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl) - extern void wxAssociateWinWithHandle( HWND hWnd ,wxWindowOS2* pWin ); @@ -83,7 +80,7 @@ bool wxRadioButton::Create( wxWindow* pParent, if (HasFlag(wxCLIP_SIBLINGS)) lSstyle |= WS_CLIPSIBLINGS; - if (!OS2CreateControl( _T("BUTTON") + if (!OS2CreateControl( wxT("BUTTON") ,lSstyle ,rPos ,rSize @@ -165,7 +162,7 @@ bool wxRadioButton::OS2Command( WXUINT wParam, WXWORD WXUNUSED(wId) ) if (!bIsChecked ) SetValue(true); } - wxCommandEvent rEvent( wxEVT_COMMAND_RADIOBUTTON_SELECTED, m_windowId ); + wxCommandEvent rEvent( wxEVT_RADIOBUTTON, m_windowId ); rEvent.SetEventObject(this); ProcessCommand(rEvent); } @@ -202,7 +199,7 @@ void wxRadioButton::SetValue( bool bValue ) const wxWindowList& rSiblings = GetParent()->GetChildren(); wxWindowList::compatibility_iterator nodeThis = rSiblings.Find(this); - wxCHECK_RET(nodeThis, _T("radio button not a child of its parent?")); + wxCHECK_RET(nodeThis, wxT("radio button not a child of its parent?")); // // If it's not the first item of the group ...