找回密码
 加入
搜索
查看: 1932|回复: 3

如何让GUI支持最大化和缩放?

[复制链接]
发表于 2008-7-29 23:04:42 | 显示全部楼层 |阅读模式
<P>要怎么设置GUI才能让窗口支持最大化和窗口大小的随意缩放?</P>
<P>&nbsp;</P>
<P>我自己写的代码是:</P>
<P>&nbsp;</P>
<P>$Form1 = GUICreate("我的AU3", 600, 400, 180, 80)</P>

[ 本帖最后由 sprinkle 于 2008-7-30 20:51 编辑 ]
发表于 2008-7-30 07:32:38 | 显示全部楼层

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Opt('MustDeclareVars', 1)

Example1()


; example 1
Func Example1()
 Local $msg

 GUICreate("My GUI", 600, 400, -1, -1,BitOR($WS_MINIMIZEBOX, $WS_MAXIMIZEBOX, $WS_SIZEBOX))
  ; will create a dialog box that when displayed is centered
 GUISetState(@SW_SHOW)       ; will display an empty dialog box

 ; Run the GUI until the dialog is closed
 While 1
 $msg = GUIGetMsg()

 If $msg = $GUI_EVENT_CLOSE Then ExitLoop
 WEnd
 GUIDelete()
EndFunc   ;==>Example1

 楼主| 发表于 2008-7-30 20:51:45 | 显示全部楼层
非常感谢,解决了
发表于 2008-7-30 20:55:21 | 显示全部楼层
正好学习了
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-5-19 11:26 , Processed in 0.072158 second(s), 20 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表