X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/34138703c3997ce676a1e713d9ff9eb020640da7..e5f741e5d467b1ce7105be96e9f3dcb553e8b89d:/src/stubs/stattext.cpp diff --git a/src/stubs/stattext.cpp b/src/stubs/stattext.cpp index a1275b8bdc..9de4821b48 100644 --- a/src/stubs/stattext.cpp +++ b/src/stubs/stattext.cpp @@ -18,9 +18,7 @@ #include -#if !USE_SHARED_LIBRARY IMPLEMENT_DYNAMIC_CLASS(wxStaticText, wxControl) -#endif bool wxStaticText::Create(wxWindow *parent, wxWindowID id, const wxString& label, @@ -32,8 +30,8 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id, SetName(name); if (parent) parent->AddChild(this); - SetBackgroundColour(parent->GetDefaultBackgroundColour()) ; - SetForegroundColour(parent->GetDefaultForegroundColour()) ; + SetBackgroundColour(parent->GetBackgroundColour()) ; + SetForegroundColour(parent->GetForegroundColour()) ; if ( id == -1 ) m_windowId = (int)NewControlId(); @@ -42,7 +40,7 @@ bool wxStaticText::Create(wxWindow *parent, wxWindowID id, m_windowStyle = style; - SetFont(* parent->GetFont()); + SetFont(parent->GetFont()); // TODO return FALSE;