X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1a4088e1c733e980d2f01b7da58545c804ac7e24..d679df70f06174bffd18e1a7db098f76ecb82991:/src/msw/treectrl.cpp 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;