X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1d320652383cca7cfcb55a20657bf93e5b667c3..dd71bfb9921430755a885117cc6c9843c62dafda:/src/xrc/xh_tree.cpp diff --git a/src/xrc/xh_tree.cpp b/src/xrc/xh_tree.cpp index 1591d626a7..dc7e178161 100644 --- a/src/xrc/xh_tree.cpp +++ b/src/xrc/xh_tree.cpp @@ -51,10 +51,14 @@ wxObject *wxTreeCtrlXmlHandler::DoCreateResource() tree->Create(m_parentAsWindow, GetID(), GetPosition(), GetSize(), - GetStyle(_T("style"), wxTR_DEFAULT_STYLE), + GetStyle(wxT("style"), wxTR_DEFAULT_STYLE), wxDefaultValidator, GetName()); + wxImageList *imagelist = GetImageList(); + if ( imagelist ) + tree->AssignImageList(imagelist); + SetupWindow(tree); return tree;