当然,我本来就放在主程序中的部分代码如下:
clear all
close all
set alter off
set cent on
set talk off
set sysmenu to
set safe off
_screen.visible=.f.
_screen.caption="..."
_screen.windowstate=2
_screen.backcolor=iif(oldcolor<=0,rgb(255,255,255),oldcolor())
_screen.picture=(oldpicture)
if islogin
do form login name ologin linked
endif
if isshowuser
do form userlogin name ouserlogin linked
endif
do mymenus.mpr
on shutdown mainquit()
read events
function mainquit()
if messagebox("are you sure Quit "+gscaption+"system?",4+16+256,"message")#6
return
else
clear events
quit
endif
endfunc