X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8941fa8806ad22825b13367a0b48f889f177fe90..b77b87881bae2e6306366d79e7fe160334b3d4a2:/src/mac/checkbox.cpp?ds=sidebyside diff --git a/src/mac/checkbox.cpp b/src/mac/checkbox.cpp index 7d58ccb136..e9248b9993 100644 --- a/src/mac/checkbox.cpp +++ b/src/mac/checkbox.cpp @@ -24,6 +24,10 @@ IMPLEMENT_DYNAMIC_CLASS(wxBitmapCheckBox, wxCheckBox) #include "wx/mac/uma.h" +wxCheckBoxBase::wxCheckBoxBase() +{ +} + // Single check box item bool wxCheckBox::Create(wxWindow *parent, wxWindowID id, const wxString& label, const wxPoint& pos, @@ -34,15 +38,13 @@ bool wxCheckBox::Create(wxWindow *parent, wxWindowID id, const wxString& label, if ( !wxCheckBoxBase::Create(parent, id, pos, size, style, validator, name) ) return false; - m_style = style; - Rect bounds ; Str255 title ; MacPreControlCreate( parent , id , label , pos , size ,style, validator , name , &bounds , title ) ; SInt16 maxValue = 1 /* kControlCheckboxCheckedValue */; - if (style & wxCH_3STATE) + if (style & wxCHK_3STATE) { maxValue = 2 /* kControlCheckboxMixedValue */; }