From: Robin Dunn Date: Fri, 16 Jul 2004 00:00:51 +0000 (+0000) Subject: Pass pos and size to MSWCreateControl so the initial and minsize will X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/8779cca3eb17f0cd577ae378eda84819601505d4?ds=inline Pass pos and size to MSWCreateControl so the initial and minsize will be set correctly git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/treectrl.cpp b/src/msw/treectrl.cpp index c2e063711f..a611c19cc5 100644 --- a/src/msw/treectrl.cpp +++ b/src/msw/treectrl.cpp @@ -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;