X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/670f9935630beb2123a5ca62894ae92a3f0efa4f..1c1ad00573fc825322af8e5174c52a10a17385c9:/src/os2/statbox.cpp diff --git a/src/os2/statbox.cpp b/src/os2/statbox.cpp index ec2bd57eef..8ae9f4d7ab 100644 --- a/src/os2/statbox.cpp +++ b/src/os2/statbox.cpp @@ -17,9 +17,9 @@ #ifndef WX_PRECOMP #include "wx/app.h" #include "wx/dcclient.h" + #include "wx/window.h" #endif -#include "wx/window.h" #include "wx/os2/private.h" IMPLEMENT_DYNAMIC_CLASS(wxStaticBox, wxControl) @@ -62,9 +62,7 @@ bool wxStaticBox::Create( wxWindow* pParent, // SetBackgroundColour(GetParent()->GetBackgroundColour()); - wxColour vColour; - vColour.Set(wxString(wxT("BLACK"))); - LONG lColor = (LONG)vColour.GetPixel(); + LONG lColor = (LONG)wxBLACK->GetPixel(); ::WinSetPresParam( m_hWnd ,PP_FOREGROUNDCOLOR ,sizeof(LONG)