#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 <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
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.
*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;