X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b1d320652383cca7cfcb55a20657bf93e5b667c3..6f026b5b63fe7ccb025e84509886f74772b9df13:/src/xrc/xh_tree.cpp diff --git a/src/xrc/xh_tree.cpp b/src/xrc/xh_tree.cpp index 1591d626a7..482bff84f0 100644 --- a/src/xrc/xh_tree.cpp +++ b/src/xrc/xh_tree.cpp @@ -1,9 +1,8 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xh_tree.cpp +// Name: src/xrc/xh_tree.cpp // Purpose: XRC resource for wxTreeCtrl // Author: Brian Gavin // Created: 2000/09/09 -// RCS-ID: $Id$ // Copyright: (c) 2000 Brian Gavin // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -51,10 +50,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;