X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1d320652383cca7cfcb55a20657bf93e5b667c3..f239a20092359e3c914adb79bd39f3f5d2b2e06f:/src/xrc/xh_tree.cpp diff --git a/src/xrc/xh_tree.cpp b/src/xrc/xh_tree.cpp index 1591d626a7..b2db5a257e 100644 --- a/src/xrc/xh_tree.cpp +++ b/src/xrc/xh_tree.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xh_tree.cpp +// Name: src/xrc/xh_tree.cpp // Purpose: XRC resource for wxTreeCtrl // Author: Brian Gavin // Created: 2000/09/09 @@ -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;