X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d5da0ce7cb746318511b3974b7882c72c0de45e2..ed2fbeb835854c97d176f8bdfd6f06a84273f5d7:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 44de7957be..e92244917a 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -25,23 +25,23 @@ #include "wx/dc.h" #include "wx/log.h" #include "wx/event.h" + #include "wx/app.h" + #include "wx/dcclient.h" + #include "wx/dcmemory.h" + #include "wx/control.h" #endif // WX_PRECOMP #include "wx/imaglist.h" -#include "wx/control.h" -#include "wx/app.h" #include "wx/sysopt.h" -#include "wx/dcclient.h" -#include "wx/dcmemory.h" #include "wx/msw/private.h" #include - -#include - #include "wx/msw/winundef.h" +// include "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