]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/classic/notebmac.cpp
Fixing inactive state drawing, and removing warning.
[wxWidgets.git] / src / mac / classic / notebmac.cpp
index 02c1dd550103076d10635ab4df86700eef6d4c90..3bf911dd74b9c58608b5a107186276fb582246c2 100644 (file)
 
 #ifndef WX_PRECOMP
     #include "wx/string.h"
+    #include "wx/log.h"
+    #include "wx/app.h"
+    #include "wx/image.h"
 #endif
 
-#include "wx/app.h"
-#include "wx/log.h"
 #include "wx/imaglist.h"
-#include "wx/image.h"
 #include "wx/mac/uma.h"
 // ----------------------------------------------------------------------------
 // macros
@@ -187,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 ;