]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/statbox.cpp
corrected path splitting for mac relative paths
[wxWidgets.git] / src / os2 / statbox.cpp
index 16a28e6c60194eb9be24a1d9bb644c1fb2ae3fc1..7ca2b7fa23208f60f6f7fcf7f5485e30c2537b71 100644 (file)
@@ -72,7 +72,14 @@ bool wxStaticBox::Create(
                       ,sizeof(LONG)
                       ,(PVOID)&lColor
                      );
-    SetFont(pParent->GetFont());
+    lColor = (LONG)m_backgroundColour.GetPixel();
+
+    ::WinSetPresParam( m_hWnd
+                      ,PP_BACKGROUNDCOLOR
+                      ,sizeof(LONG)
+                      ,(PVOID)&lColor
+                     );
+    SetFont(*wxSMALL_FONT);
     SetSize( rPos.x
             ,rPos.y
             ,rSize.x