]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
implemented --with-<lib> options (yes, no, sys, and builtin) for libjpeg,
[wxWidgets.git] / src / msw / notebook.cpp
index 2022f361f94e22ba4624acf564b972028a3b8114..f3af3b19a439598d8f5e5fb90d5f9c22e553cc50 100644 (file)
@@ -171,10 +171,9 @@ bool wxNotebook::Create(wxWindow *parent,
   if (m_windowStyle & wxNB_RIGHT)
     tabStyle |= TCS_VERTICAL|TCS_RIGHT;
 
-
-  if ( !MSWCreate(GetId(), GetParent(), WC_TABCONTROL,
-                  this, NULL, pos.x, pos.y, size.x, size.y,
-                  tabStyle, NULL, 0) )
+  // note that we don't want to have the default WS_EX_CLIENTEDGE style for the
+  // notebook, so explicitly specify 0 as last parameter
+  if ( !MSWCreateControl(WC_TABCONTROL, tabStyle, pos, size, _T(""), 0) )
   {
     return FALSE;
   }
@@ -187,8 +186,6 @@ bool wxNotebook::Create(wxWindow *parent,
   if ( parent != NULL )
     parent->AddChild(this);
 
-  SubclassWin(m_hWnd);
-
   return TRUE;
 }