X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/22f3361e1cf25c52a2da8fdfc5cb081809e18fb9..d8c65cf48881468f97798ac521fb93f9b8b5a293:/src/msw/notebook.cpp?ds=inline diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index f2920163e9..41bb070524 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -142,12 +142,11 @@ bool wxNotebook::Create(wxWindow *parent, const wxString& name) { // base init - if ( !CreateControl(parent, id, pos, size, style, wxDefaultValidator, name) ) + if ( !CreateControl(parent, id, pos, size, style | wxTAB_TRAVERSAL, + wxDefaultValidator, name) ) return FALSE; - // notebook, so explicitly specify 0 as last parameter - if ( !MSWCreateControl(WC_TABCONTROL, _T(""), pos, size, - style | wxTAB_TRAVERSAL) ) + if ( !MSWCreateControl(WC_TABCONTROL, _T(""), pos, size) ) return FALSE; SetBackgroundColour(wxColour(::GetSysColor(COLOR_BTNFACE))); @@ -604,6 +603,8 @@ void wxNotebook::OnNavigationKey(wxNavigationKeyEvent& event) // wxNotebook base class virtuals // ---------------------------------------------------------------------------- +#if wxUSE_CONSTRAINTS + // override these 2 functions to do nothing: everything is done in OnSize void wxNotebook::SetConstraintSizes(bool WXUNUSED(recurse)) @@ -617,6 +618,8 @@ bool wxNotebook::DoPhase(int WXUNUSED(nPhase)) return TRUE; } +#endif // wxUSE_CONSTRAINTS + // ---------------------------------------------------------------------------- // wxNotebook Windows message handlers // ----------------------------------------------------------------------------