www.gusucode.com > mbcview 工具箱matlab源码程序 > mbcview/cg_shutdown.m

    function [OK,err] = cg_shutdown(t)
%CG_SHUTDOWN Shutdown tasks for cage
%
%  CG_SHUTDOWN is called when the CAGE browser is closed down.

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


OK  =1;
err = '';

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                    %
%  (1) Clear MousePointer Repository data            %
%                                                    %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

mPR = xregGui.PointerRepository('clean');

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                                                    %
%  (2) Clear persistent CAGE Browser handle          %
%                                                    %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

clear cgbrowser;   % Clearing function does the job