]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
Include wx/sizer.h and wx/layout.h according to precompiled headers of wx/wx.h (with...
[wxWidgets.git] / src / msw / notebook.cpp
index 63d07543f3ab8582abbbc848917fba6e0ea0c0ef..e92244917aa1946d6ff8c3b05c974dffa3ff7575 100644 (file)
 #include  "wx/msw/private.h"
 
 #include  <windowsx.h>
-
-#include <commctrl.h>
-
 #include "wx/msw/winundef.h"
 
+// include <commctrl.h> "properly"
+#include "wx/msw/wrapcctl.h"
+
 #if wxUSE_UXTHEME
     #include "wx/msw/uxtheme.h"
 #endif
@@ -274,6 +274,8 @@ bool wxNotebook::Create(wxWindow *parent,
     if (style & wxNB_FLAT)
         style |= wxBORDER_SUNKEN;
 #endif
+    if ( (style & wxBK_ALIGN_MASK) == wxBK_DEFAULT )
+        style |= wxBK_TOP;
 
 #if !wxUSE_UXTHEME
     // ComCtl32 notebook tabs simply don't work unless they're on top if we have uxtheme, we can