X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b9b1d6c8ddc0e923c368529efb0e011edeec44e6..f43bb7e246603413a43382e43e480972687eca92:/src/os2/statline.cpp diff --git a/src/os2/statline.cpp b/src/os2/statline.cpp index effb7de350..cd3343c3be 100644 --- a/src/os2/statline.cpp +++ b/src/os2/statline.cpp @@ -60,12 +60,26 @@ bool wxStaticLine::Create( ,rsName )) return FALSE; - return OS2CreateControl( _T("STATIC") - ,_T("") - ,rPos - ,vSize - ,lStyle - ); + if (!OS2CreateControl( "STATIC" + ,SS_FGNDFRAME + ,rPos + ,rSize + ,rsName + )) + return FALSE; + + wxColour vColour; + + vColour.Set(wxString("GREY")); + + LONG lColor = (LONG)vColour.GetPixel(); + + ::WinSetPresParam( m_hWnd + ,PP_FOREGROUNDCOLOR + ,sizeof(LONG) + ,(PVOID)&lColor + ); + return TRUE; } // end of wxStaticLine::Create WXDWORD wxStaticLine::OS2GetStyle(