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
This commit is contained in:
parent
7c0a023dc1
commit
8779cca3eb
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user