X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a4a162522b875bc7cb23f1d165703f71bd7010f7..1b0b798d77b7b93b81d62162b290441bc9175e3e:/src/os2/checkbox.cpp?ds=inline diff --git a/src/os2/checkbox.cpp b/src/os2/checkbox.cpp index eaa7389885..e2b20ca4d7 100644 --- a/src/os2/checkbox.cpp +++ b/src/os2/checkbox.cpp @@ -97,15 +97,6 @@ bool wxCheckBox::Create( if (lStyle & wxCLIP_SIBLINGS ) lSstyle |= WS_CLIPSIBLINGS; - // - // If the parent is a scrolled window the controls must - // have this style or they will overlap the scrollbars - // - if (pParent) - if (pParent->IsKindOf(CLASSINFO(wxScrolledWindow)) || - pParent->IsKindOf(CLASSINFO(wxGenericScrolledWindow))) - lSstyle |= WS_CLIPSIBLINGS; - m_hWnd = (WXHWND)::WinCreateWindow ( GetHwndOf(pParent) ,WC_BUTTON ,rsLabel.c_str() @@ -131,13 +122,18 @@ bool wxCheckBox::Create( ,(PVOID)&lColor ); - SetFont(pParent->GetFont()); - + wxFont* pTextFont = new wxFont( 10 + ,wxMODERN + ,wxNORMAL + ,wxNORMAL + ); + SetFont(*pTextFont); SetSize( nX ,nY ,nWidth ,nHeight ); + delete pTextFont; return TRUE; } // end of wxCheckBox::Create