// 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
// 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;