]> git.saurik.com Git - wxWidgets.git/blobdiff - src/univ/notebook.cpp
IsInAssert is only available (and only makes sense) in a debug build so
[wxWidgets.git] / src / univ / notebook.cpp
index 80763267edf1e1840e7df8b4f7138b16a5546eb5..5de122ecf111f053a2940f708ea364b1e4e3a614 100644 (file)
 // 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;