#include "wx/wxprec.h"
+#if wxUSE_STATTEXT
+
#include "wx/app.h"
#include "wx/stattext.h"
#include "wx/notebook.h"
Rect bounds = wxMacGetBoundsForControl( this , pos , size ) ;
wxMacCFStringHolder str(m_label,m_font.GetEncoding() ) ;
- m_peer = new wxMacControl() ;
+ m_peer = new wxMacControl(this) ;
verify_noerr(CreateStaticTextControl(MAC_WXHWND(parent->MacGetTopLevelWindowRef()),&bounds, str ,
NULL , m_peer->GetControlRefAddr() ) ) ;
return ret;
}
+
+#endif //if wxUSE_STATTEXT
+