]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/radiobut.cpp
id are generated as in wxMSW if the default value (-1) is given to
[wxWidgets.git] / src / msw / radiobut.cpp
index 32cf7fe87e06a12de779e0579356161ac4a58a16..8a222716d269cca8ea06152fef2cb06edb39e623 100644 (file)
@@ -33,6 +33,18 @@ IMPLEMENT_DYNAMIC_CLASS(wxRadioButton, wxControl)
 // IMPLEMENT_DYNAMIC_CLASS(wxBitmapRadioButton, wxRadioButton)
 #endif
 
+bool wxRadioButton::MSWCommand(WXUINT param, WXWORD id)
+{
+  if (param == BN_CLICKED)
+  {
+    wxCommandEvent event(wxEVT_COMMAND_RADIOBUTTON_SELECTED, m_windowId);
+    event.SetEventObject( this );
+    ProcessCommand(event);
+    return TRUE;
+  }
+  else return FALSE;
+}
+
 bool wxRadioButton::Create(wxWindow *parent, wxWindowID id,
        const wxString& label,
            const wxPoint& pos,