X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1cc4f822d37f6546c5b00c341b2eecbaca5054b2..6edf960cf5fe9c0cfbfcc13f645232e35aad5fec:/src/univ/notebook.cpp diff --git a/src/univ/notebook.cpp b/src/univ/notebook.cpp index 80763267ed..5de122ecf1 100644 --- a/src/univ/notebook.cpp +++ b/src/univ/notebook.cpp @@ -44,7 +44,12 @@ // macros // ---------------------------------------------------------------------------- +#if 0 +// due to unsigned type nPage is always >= 0 #define IS_VALID_PAGE(nPage) (((nPage) >= 0) && ((size_t(nPage)) < GetPageCount())) +#else +#define IS_VALID_PAGE(nPage) ((size_t(nPage)) < GetPageCount()) +#endif // ---------------------------------------------------------------------------- // constants @@ -97,6 +102,23 @@ IMPLEMENT_DYNAMIC_CLASS(wxNotebookEvent, wxCommandEvent) // wxNotebook creation // ---------------------------------------------------------------------------- +wxNotebook::wxNotebook() +{ + Init(); +} + +wxNotebook::wxNotebook(wxWindow *parent, + wxWindowID id, + const wxPoint& pos, + const wxSize& size, + long style, + const wxString& name) +{ + Init(); + + (void)Create(parent, id, pos, size, style, name); +} + void wxNotebook::Init() { m_sel = INVALID_PAGE;