]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
load wsock32.dll dynamically, so that wxCore has no dependency on it
[wxWidgets.git] / src / os2 / statbox.cpp
index 571107c39b62da91c86177053e0ba1b5bd048d49..a30d967d5945fcb6bb5c91d96b6a20075d488403 100644 (file)
@@ -39,9 +39,7 @@ bool wxStaticBox::Create(
                       ,rPos
                       ,rSize
                       ,lStyle
-#if wxUSE_VALIDATORS
                       ,wxDefaultValidator
-#endif
                       ,rsName
                      ))
     {
@@ -84,18 +82,12 @@ bool wxStaticBox::Create(
                       ,sizeof(LONG)
                       ,(PVOID)&lColor
                      );
-    wxFont*                          pTextFont = new wxFont( 10
-                                                            ,wxMODERN
-                                                            ,wxNORMAL
-                                                            ,wxNORMAL
-                                                           );
-    SetFont(*pTextFont);
+    SetFont(*wxSMALL_FONT);
     SetSize( rPos.x
             ,rPos.y
             ,rSize.x
             ,rSize.y
            );
-    delete pTextFont;
     return TRUE;
 } // end of wxStaticBox::Create