]> git.saurik.com Git - wxWidgets.git/commitdiff
Pass pos and size to MSWCreateControl so the initial and minsize will
authorRobin Dunn <robin@alldunn.com>
Fri, 16 Jul 2004 00:00:51 +0000 (00:00 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 16 Jul 2004 00:00:51 +0000 (00:00 +0000)
be set correctly

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/treectrl.cpp

index c2e063711f24174e2946ec3616813e14fd6bdeb6..a611c19cc552e7fcb5b8c255b05e343f07026a2e 100644 (file)
@@ -683,7 +683,7 @@ bool wxTreeCtrl::Create(wxWindow *parent,
 #endif
 
     // Create the tree control.
 #endif
 
     // Create the tree control.
-    if ( !MSWCreateControl(WC_TREEVIEW, wstyle) )
+    if ( !MSWCreateControl(WC_TREEVIEW, wstyle, pos, size) )
         return false;
 
 #if wxUSE_COMCTL32_SAFELY
         return false;
 
 #if wxUSE_COMCTL32_SAFELY
@@ -755,8 +755,6 @@ bool wxTreeCtrl::Create(wxWindow *parent,
     }
 #endif // 0
 
     }
 #endif // 0
 
-    SetSize(pos.x, pos.y, size.x, size.y);
-
     wxSetCCUnicodeFormat(GetHwnd());
 
     return true;
     wxSetCCUnicodeFormat(GetHwnd());
 
     return true;