X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b54e41c5298568d48a7a1fa532b2653288a8713c..d9d59a587c0d52ac94dbc5fcc3fb0825e6bba14a:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 2022f361f9..f3af3b19a4 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -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; }