X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f38924e863cd44e2abd49d20d201d72aa773c51e..8e5ec129614e2473fd240f2a6e94ee56e3a9039b:/src/msw/notebook.cpp?ds=sidebyside diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index ff438e3dc6..f34fcbc97b 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -28,20 +28,20 @@ #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/sysopt.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 @@ -268,6 +268,15 @@ bool wxNotebook::Create(wxWindow *parent, long style, const wxString& name) { + if ( (style & wxBK_ALIGN_MASK) == wxBK_DEFAULT ) + { +#if defined(__POCKETPC__) + style |= wxBK_BOTTOM | wxNB_FLAT; +#else + style |= wxBK_TOP; +#endif + } + #ifdef __WXWINCE__ // Not sure why, but without this style, there is no border // around the notebook tabs. @@ -809,6 +818,8 @@ int wxNotebook::HitTest(const wxPoint& pt, long *flags) const *flags |= wxNB_HITTEST_ONICON; if ((hitTestInfo.flags & TCHT_ONITEMLABEL) == TCHT_ONITEMLABEL) *flags |= wxNB_HITTEST_ONLABEL; + if ( item == wxNOT_FOUND && GetPageSize().Inside(pt) ) + *flags |= wxNB_HITTEST_ONPAGE; } return item;