X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b225f65995e9eccefe9b502568b1b8e40629cd1a..4f14bcd8742396e60b6b31bbba7f555ebe2ebdf7:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index a20bd933dd..f3af3b19a4 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -171,8 +171,9 @@ bool wxNotebook::Create(wxWindow *parent, if (m_windowStyle & wxNB_RIGHT) tabStyle |= TCS_VERTICAL|TCS_RIGHT; - - if ( !MSWCreateControl(WC_TABCONTROL, tabStyle, pos, size) ) + // 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; } @@ -185,8 +186,6 @@ bool wxNotebook::Create(wxWindow *parent, if ( parent != NULL ) parent->AddChild(this); - SubclassWin(m_hWnd); - return TRUE; }