X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b54e41c5298568d48a7a1fa532b2653288a8713c..31a06b07cce898a22d0ca3992501e85da9c22f13:/src/msw/notebook.cpp diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 2022f361f9..379f7dea9f 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -172,9 +172,7 @@ bool wxNotebook::Create(wxWindow *parent, tabStyle |= TCS_VERTICAL|TCS_RIGHT; - if ( !MSWCreate(GetId(), GetParent(), WC_TABCONTROL, - this, NULL, pos.x, pos.y, size.x, size.y, - tabStyle, NULL, 0) ) + if ( !MSWCreateControl(WC_TABCONTROL, tabStyle, pos, size) ) { return FALSE; } @@ -187,8 +185,6 @@ bool wxNotebook::Create(wxWindow *parent, if ( parent != NULL ) parent->AddChild(this); - SubclassWin(m_hWnd); - return TRUE; }