]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/treectrl.cpp
drawing the border based on the native control's border, as things like calctrl may...
[wxWidgets.git] / src / msw / treectrl.cpp
index c2e063711f24174e2946ec3616813e14fd6bdeb6..a611c19cc552e7fcb5b8c255b05e343f07026a2e 100644 (file)
@@ -683,7 +683,7 @@ bool wxTreeCtrl::Create(wxWindow *parent,
 #endif
 
     // Create the tree control.
-    if ( !MSWCreateControl(WC_TREEVIEW, wstyle) )
+    if ( !MSWCreateControl(WC_TREEVIEW, wstyle, pos, size) )
         return false;
 
 #if wxUSE_COMCTL32_SAFELY
@@ -755,8 +755,6 @@ bool wxTreeCtrl::Create(wxWindow *parent,
     }
 #endif // 0
 
-    SetSize(pos.x, pos.y, size.x, size.y);
-
     wxSetCCUnicodeFormat(GetHwnd());
 
     return true;