X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/90c0f5a958242295e950cbd1eedbae8f5309442d..3f4a2351e4c677c88c18ea812b609477adee7380:/src/mac/classic/notebmac.cpp diff --git a/src/mac/classic/notebmac.cpp b/src/mac/classic/notebmac.cpp index 7edae0f4e6..3bf911dd74 100644 --- a/src/mac/classic/notebmac.cpp +++ b/src/mac/classic/notebmac.cpp @@ -9,6 +9,8 @@ // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// +#include "wx/wxprec.h" + // ============================================================================ // declarations // ============================================================================ @@ -16,12 +18,17 @@ // ---------------------------------------------------------------------------- // headers // ---------------------------------------------------------------------------- -#include "wx/app.h" -#include "wx/string.h" -#include "wx/log.h" -#include "wx/imaglist.h" -#include "wx/image.h" + #include "wx/notebook.h" + +#ifndef WX_PRECOMP + #include "wx/string.h" + #include "wx/log.h" + #include "wx/app.h" + #include "wx/image.h" +#endif + +#include "wx/imaglist.h" #include "wx/mac/uma.h" // ---------------------------------------------------------------------------- // macros @@ -180,6 +187,9 @@ bool wxNotebook::Create(wxWindow *parent, Rect bounds ; Str255 title ; + if ( (style & wxBK_ALIGN_MASK) == wxBK_DEFAULT ) + style |= wxBK_TOP; + MacPreControlCreate( parent , id , wxEmptyString , pos , size ,style, wxDefaultValidator , name , &bounds , title ) ; int tabstyle = kControlTabSmallNorthProc ;