X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/670f9935630beb2123a5ca62894ae92a3f0efa4f..a97d569cbbf90ba8bb293214055c3a8c19d447b5:/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)