From: Robin Dunn Date: Wed, 21 Jul 2004 22:07:38 +0000 (+0000) Subject: Call CreateControl instead of CreateBase X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/f4d233c74aa689b9d5160dcdddc5324812c972a3 Call CreateControl instead of CreateBase git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/textctrl.cpp b/src/msw/textctrl.cpp index 6c52d71047..b0d7135cc0 100644 --- a/src/msw/textctrl.cpp +++ b/src/msw/textctrl.cpp @@ -245,12 +245,9 @@ bool wxTextCtrl::Create(wxWindow *parent, wxWindowID id, #endif // base initialization - if ( !CreateBase(parent, id, pos, size, style, validator, name) ) + if ( !CreateControl(parent, id, pos, size, style, validator, name) ) return FALSE; - if ( parent ) - parent->AddChild(this); - // translate wxWin style flags to MSW ones WXDWORD msStyle = MSWGetCreateWindowFlags();