X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/30d2b71da315ddb524f0778e13a8efd923342fd2..28e5e577e4d26332a7ebdf7d1dc7492807fa1601:/src/generic/notebook.cpp

diff --git a/src/generic/notebook.cpp b/src/generic/notebook.cpp
index efd24ca31e..f6462ae8a4 100644
--- a/src/generic/notebook.cpp
+++ b/src/generic/notebook.cpp
@@ -20,6 +20,10 @@
 #pragma implementation "notebook.h"
 #endif
 
+#ifdef __VMS
+#pragma message disable unscomzer
+#endif
+
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
@@ -129,8 +133,7 @@ bool wxNotebook::Create(wxWindow *parent,
 
     m_windowId = id == -1 ? NewControlId() : id;
 
-    // It's like a normal window...
-    if (!wxWindow::Create(parent, id, pos, size, style|wxNO_BORDER, name))
+    if (!wxControl::Create(parent, id, pos, size, style|wxNO_BORDER, wxDefaultValidator, name))
         return FALSE;
 
     SetBackgroundColour(wxSystemSettings::GetColour(wxSYS_COLOUR_3DFACE));