X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2646f485163f410baaad5bcf49028c604a352d19..c7c6e54baed01937426239dd38164ee0326fa172:/src/mac/classic/statlmac.cpp?ds=sidebyside diff --git a/src/mac/classic/statlmac.cpp b/src/mac/classic/statlmac.cpp index a7a116ba57..818321cb0d 100644 --- a/src/mac/classic/statlmac.cpp +++ b/src/mac/classic/statlmac.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: generic/statline.cpp +// Name: src/mac/classic/statlmac.cpp // Purpose: a generic wxStaticLine class // Author: Vadim Zeitlin // Created: 28.06.99 @@ -16,10 +16,6 @@ // headers // ---------------------------------------------------------------------------- -#ifdef __GNUG__ - #pragma implementation "statline.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -28,7 +24,10 @@ #endif #include "wx/statline.h" -#include "wx/statbox.h" + +#ifndef WX_PRECOMP + #include "wx/statbox.h" +#endif #include "wx/mac/uma.h" @@ -55,13 +54,13 @@ bool wxStaticLine::Create( wxWindow *parent, Rect bounds ; Str255 title ; - + MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ; - m_macControl = ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1, + m_macControl = (WXWidget) ::NewControl( MAC_WXHWND(parent->MacGetRootWindow()) , &bounds , title , false , 0 , 0 , 1, kControlSeparatorLineProc , (long) this ) ; - + MacPostControlCreate() ; - return TRUE; + return true; }