www.gusucode.com > mbctools 工具箱 matlab 源码程序 > mbctools/@xregtools/@MBrowser/doDrawTree.m

    function doDrawTree(h,p);
%DODRAWTREE  Redraw the tree control
%
%  h.doDrawTree refreshes the activeX tree
%  h.doDrawTree(p) refreshes the given node
%

%  Copyright 2000-2004 The MathWorks, Inc. and Ford Global Technologies, Inc.



% Created 11/4/2001

if nargin<2
   p=h.CurrentNode;
   treeview(p.info,'refresh',h.Hand.Figure.TreeView,4);
else
	for i=1:length(p)
		treeview(p(i).info,'icon',h.Hand.Figure.TreeView);   
		treeview(p(i).info,'label',h.Hand.Figure.TreeView);   
	end
end