bingxing8000 发表于 2011-1-29 15:52:03

什么函数可以新建一个可以随意调整大小的窗口

什么函数可以新建一个可以随意调整大小的窗口?

pusofalse 发表于 2011-1-29 16:00:27

GUICreate函数,加上WS_SIZEBOX样式。

smartzbs 发表于 2011-1-29 16:02:18

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

Opt('MustDeclareVars', 1)

Example1()

; example 1
Func Example1()
    Local $msg

    GUICreate("My GUI",-1,-1,-1,-1, $WS_EX_APPWINDOW)
    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

bingxing8000 发表于 2011-1-30 10:36:03

2楼的方法我没有试,3楼的是可以的。
谢谢你们了
我想问一下3楼GUICreate("My GUI",-1,-1,-1,-1, $WS_EX_APPWINDOW) ,其中“-1,-1,-1,-1”的意思

happytc 发表于 2011-1-30 11:05:35

2楼的方法我没有试,3楼的是可以的。
谢谢你们了
我想问一下3楼GUICreate("My GUI",-1,-1,-1,-1, $WS_E ...
bingxing8000 发表于 2011-1-30 10:36 http://www.autoitx.com/images/common/back.gif

帮助写得太清楚不过了,那些-1的意思

bingxing8000 发表于 2011-1-30 16:36:43

2楼的可以是可以的
但是怎么不能最小化了

stcyk 发表于 2011-1-30 17:02:21

2楼的可以啊

bingxing8000 发表于 2011-1-30 17:15:51


可以给个源码借鉴借鉴吗?

sxd 发表于 2011-1-31 12:37:17

这种问题能问出来 只能说明帮助没仔细看 请再去看一次帮助 谢谢
不然也太对不起汉化的人了

bingxing8000 发表于 2011-1-31 19:30:53

呵呵,好的,我回去好好看看帮助
页: [1]
查看完整版本: 什么函数可以新建一个可以随意调整大小的窗口