X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/facd6764872eede45605ba7c9dfa0e1d0c708fa2..45cf8535da51328702d0cab63636bc13bca4a620:/src/mac/carbon/statlmac.cpp diff --git a/src/mac/carbon/statlmac.cpp b/src/mac/carbon/statlmac.cpp index 938aae0715..1b47d345d6 100644 --- a/src/mac/carbon/statlmac.cpp +++ b/src/mac/carbon/statlmac.cpp @@ -16,7 +16,7 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ +#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) #pragma implementation "statline.h" #endif @@ -56,9 +56,9 @@ bool wxStaticLine::Create( wxWindow *parent, return false; Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ; - m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetTopLevelWindowRef()) , &bounds , "\p" , true , 0 , 0 , 1, - kControlSeparatorLineProc , (long) this ) ; - + m_peer = new wxMacControl(this) ; + verify_noerr(CreateSeparatorControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, m_peer->GetControlRefAddr() ) ) ; + MacPostControlCreate(pos,size) ; return TRUE;