X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1169a91932273bc84c23ed9dbd0a2da064d59d66..7b162e540e98415f8ac6bc1fd5b880e143aa85e5:/include/wx/bookctrl.h diff --git a/include/wx/bookctrl.h b/include/wx/bookctrl.h index 51761208cb..883a27bebc 100644 --- a/include/wx/bookctrl.h +++ b/include/wx/bookctrl.h @@ -41,14 +41,22 @@ public: // construction // ------------ - wxBookCtrl(); + wxBookCtrl() + { + Init(); + } wxBookCtrl(wxWindow *parent, wxWindowID winid, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = 0, - const wxString& name = wxEmptyString); + const wxString& name = wxEmptyString) + { + Init(); + + (void)Create(parent, winid, pos, size, style, name); + } // quasi ctor bool Create(wxWindow *parent, @@ -153,6 +161,9 @@ public: } } + virtual void ApplyParentThemeBackground(const wxColour& bg) + { SetBackgroundColour(bg); } + protected: // remove the page and return a pointer to it virtual wxWindow *DoRemovePage(size_t page) = 0;