X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3c299c3ab663257429983c24e6fb71450f3cf9f1..8f4fcc4ee080b020057cc028a809ffc884f63bb8:/src/os2/statbox.cpp diff --git a/src/os2/statbox.cpp b/src/os2/statbox.cpp index 16a28e6c60..7ca2b7fa23 100644 --- a/src/os2/statbox.cpp +++ b/src/os2/statbox.cpp @@ -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