|
VFP中最大化屏幕问题
作者: 红虎 出处:网络
常有人问起如何在VFP中实现屏幕最大化的问题,一次偶然,我发现了这个方法可以实现,遂将之写下来,希望可以给大家带来帮助
一、最大化顶层表单
thisform.caption=""
thisform.minbutton=.f.
thisform.maxbutton=.f.
thisform.closable=.f.
thisform.movable=.f.
thisform.controlbox=.f.
thisform.borderstyle=0
thisform.height=sysmetric(2)
thisform.width=sysmetric(1)
thisform.left=0 thisform.top=0
二、最大化主窗口
_screen.caption=""
_screen.minbutton=.f.
_screen.maxbutton=.f.
_screen.closable=.f.
_screen.movable=.f.
_screen.controlbox=.f.
_screen.borderstyle=0
_screen.height=sysmetric(2)
_screen.width=sysmetric(1)
_screen.left=0 _screen.top=0
另要在config.fpw文件中加入下面两行
resource= off
sysmenu = off
[返回] |