X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f254e2424a5220e559e48205ace1114ea3e87f3f..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/univ/checkbox.cpp diff --git a/src/univ/checkbox.cpp b/src/univ/checkbox.cpp index d92d93808e..f038623987 100644 --- a/src/univ/checkbox.cpp +++ b/src/univ/checkbox.cpp @@ -59,8 +59,6 @@ public: // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxCheckBox, wxControl) - // ---------------------------------------------------------------------------- // wxCheckBox // ---------------------------------------------------------------------------- @@ -118,7 +116,7 @@ void wxCheckBox::OnCheck() wxBitmap wxCheckBox::GetBitmap(State state, Status status) const { wxBitmap bmp = m_bitmaps[state][status]; - if ( !bmp.Ok() ) + if ( !bmp.IsOk() ) bmp = m_bitmaps[State_Normal][status]; return bmp; @@ -180,7 +178,7 @@ void wxCheckBox::DoDraw(wxControlRenderer *renderer) wxSize wxCheckBox::GetBitmapSize() const { wxBitmap bmp = GetBitmap(State_Normal, Status_Checked); - return bmp.Ok() ? wxSize(bmp.GetWidth(), bmp.GetHeight()) + return bmp.IsOk() ? wxSize(bmp.GetWidth(), bmp.GetHeight()) : GetRenderer()->GetCheckBitmapSize(); } @@ -300,7 +298,7 @@ void wxCheckBox::ChangeValue(bool value) void wxCheckBox::SendEvent() { - wxCommandEvent event(wxEVT_COMMAND_CHECKBOX_CLICKED, GetId()); + wxCommandEvent event(wxEVT_CHECKBOX, GetId()); InitCommandEvent(event); wxCheckBoxState state = Get3StateValue();