X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e53b3d16de127872e39bf276f7e616b32f161645..17473a770a4aaed3b0904025f5e3e139441b0909:/src/osx/statline_osx.cpp diff --git a/src/osx/statline_osx.cpp b/src/osx/statline_osx.cpp index edb5b50158..39522f252c 100644 --- a/src/osx/statline_osx.cpp +++ b/src/osx/statline_osx.cpp @@ -1,9 +1,9 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: src/mac/carbon/statlmac.cpp +// Name: src/osx/statline_osx.cpp // Purpose: a generic wxStaticLine class // Author: Vadim Zeitlin // Created: 28.06.99 -// Version: $Id: statlmac.cpp 54129 2008-06-11 19:30:52Z SC $ +// Version: $Id$ // Copyright: (c) 1998 Vadim Zeitlin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -37,8 +37,6 @@ // implementation // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxStaticLine, wxControl) - // ---------------------------------------------------------------------------- // wxStaticLine // ---------------------------------------------------------------------------- @@ -49,14 +47,14 @@ bool wxStaticLine::Create( wxWindow *parent, const wxSize &size, long style, const wxString &name) -{ - m_macIsUserPane = false ; - +{ + DontCreatePeer(); + if ( !wxStaticLineBase::Create(parent, id, pos, size, style, wxDefaultValidator, name) ) return false; - m_peer = wxWidgetImpl::CreateStaticLine( this, parent, id, pos, size, style, GetExtraStyle() ); + SetPeer(wxWidgetImpl::CreateStaticLine( this, parent, id, pos, size, style, GetExtraStyle() )); MacPostControlCreate(pos,size) ;