]> git.saurik.com Git - wxWidgets.git/commitdiff
Call CreateControl instead of CreateBase
authorRobin Dunn <robin@alldunn.com>
Wed, 21 Jul 2004 22:07:38 +0000 (22:07 +0000)
committerRobin Dunn <robin@alldunn.com>
Wed, 21 Jul 2004 22:07:38 +0000 (22:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/textctrl.cpp

index 6c52d71047c041246ce640496a3b6d163ac72c91..b0d7135cc0a28270c3cc9b83e6b49d486c9b1748 100644 (file)
@@ -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();