]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
Stripped out miscellaneous Motif/Xt-specific code
[wxWidgets.git] / src / os2 / statbox.cpp
index 16a28e6c60194eb9be24a1d9bb644c1fb2ae3fc1..61f5db74d6cf964bb3d8488d21d466b94a39f386 100644 (file)
@@ -72,12 +72,25 @@ bool wxStaticBox::Create(
                       ,sizeof(LONG)
                       ,(PVOID)&lColor
                      );
-    SetFont(pParent->GetFont());
+    lColor = (LONG)m_backgroundColour.GetPixel();
+
+    ::WinSetPresParam( m_hWnd
+                      ,PP_BACKGROUNDCOLOR
+                      ,sizeof(LONG)
+                      ,(PVOID)&lColor
+                     );
+    wxFont*                          pTextFont = new wxFont( 10
+                                                            ,wxMODERN
+                                                            ,wxNORMAL
+                                                            ,wxNORMAL
+                                                           );
+    SetFont(*pTextFont);
     SetSize( rPos.x
             ,rPos.y
             ,rSize.x
             ,rSize.y
            );
+    delete pTextFont;
     return TRUE;
 } // end of wxStaticBox::Create