]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/checkbox.cpp
Oops, compile errors...
[wxWidgets.git] / src / mac / checkbox.cpp
index ca99c4b778bbfe036bad4482e3ca4f1a4ade410d..df3424b88fca86cc1a7756b8c463cb9926cce626 100644 (file)
 
 #include "wx/checkbox.h"
 
-#if !USE_SHARED_LIBRARY
 IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl)
 IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox)
-#endif
 
 #include <wx/mac/uma.h>
 
@@ -61,6 +59,10 @@ void wxCheckBox::Command (wxCommandEvent & event)
 void wxCheckBox::MacHandleControlClick( ControlHandle control , SInt16 controlpart ) 
 {
        SetValue( !GetValue() ) ;
+    wxCommandEvent event(wxEVT_COMMAND_CHECKBOX_CLICKED, m_windowId );
+    event.SetInt(GetValue());
+    event.SetEventObject(this);
+    ProcessCommand(event);
 }
 
 // Bitmap checkbox