X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/670f9935630beb2123a5ca62894ae92a3f0efa4f..3c3e94dc01ce543f3d010778b443c14974121caa:/src/os2/statbox.cpp diff --git a/src/os2/statbox.cpp b/src/os2/statbox.cpp index ec2bd57eef..94d826ec8d 100644 --- a/src/os2/statbox.cpp +++ b/src/os2/statbox.cpp @@ -4,7 +4,6 @@ // Author: David Webster // Modified by: // Created: ??/??/98 -// RCS-ID: $Id$ // Copyright: (c) David Webster // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -17,13 +16,11 @@ #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) - bool wxStaticBox::Create( wxWindow* pParent, wxWindowID vId, const wxString& rsLabel, @@ -62,9 +59,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)