]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/checkbox.cpp
corrected path splitting for mac relative paths
[wxWidgets.git] / src / os2 / checkbox.cpp
index 0101e79a0c355a3cf9a4f0f6b650b925329af4b9..2c18c0eb223499f82a543d4594467799a29972a2 100644 (file)
@@ -15,6 +15,9 @@
 #ifndef WX_PRECOMP
     #include "wx/checkbox.h"
     #include "wx/brush.h"
 #ifndef WX_PRECOMP
     #include "wx/checkbox.h"
     #include "wx/brush.h"
+    #include "wx/scrolwin.h"
+    #include "wx/dcscreen.h"
+    #include "wx/settings.h"
 #endif
 
 #include "wx/os2/private.h"
 #endif
 
 #include "wx/os2/private.h"
@@ -128,7 +131,7 @@ bool wxCheckBox::Create(
                       ,(PVOID)&lColor
                      );
 
                       ,(PVOID)&lColor
                      );
 
-    SetFont(pParent->GetFont());
+    SetFont(*wxSMALL_FONT);
 
     SetSize( nX
             ,nY
 
     SetSize( nX
             ,nY
@@ -153,7 +156,7 @@ wxSize wxCheckBox::DoGetBestSize() const
     {
         wxScreenDC                  vDc;
 
     {
         wxScreenDC                  vDc;
 
-        vDc.SetFont(wxSystemSettings::GetSystemFont(wxSYS_DEFAULT_GUI_FONT));
+        vDc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
 
         //
         // The height of a standard button in the dialog units is 8,
 
         //
         // The height of a standard button in the dialog units is 8,