找回密码
 加入
搜索
查看: 2735|回复: 2

$ES_PASSWORD,为啥不起作用?

[复制链接]
发表于 2008-5-17 18:06:15 | 显示全部楼层 |阅读模式
#include <GUIConstantsEx.au3>

Opt('MustDeclareVars', 1)

Example()

Func Example()
        Local $file, $btn, $msg
        
        GUICreate(" My GUI input acceptfile", 320, 120, @DesktopWidth / 2 - 160, @DesktopHeight / 2 - 45, -1, 0x00000018); WS_EX_ACCEPTFILES
        $file = GUICtrlCreateInput("", 10, 5, 300, 20)
        GUICtrlSetState(-1, $GUI_DROPACCEPTED)
        GUICtrlCreateInput("", 10, 35, 300, 20,$ES_PASSWORD)         ; will not accept drag&drop files
        $btn = GUICtrlCreateButton("Ok", 40, 75, 60, 20)

        GUISetState()

        $msg = 0
        While $msg <> $GUI_EVENT_CLOSE
                $msg = GUIGetMsg()
                Select
                        Case $msg = $btn
                                ExitLoop
                EndSelect
        WEnd

        MsgBox(4096, "drag drop file", GUICtrlRead($file))
EndFunc   ;==>Example


在这个例子中,就是加了一个$ES_PASSWORD,把这个隐藏的样式去掉,可以运行。
但我想我输入的不显示出来,加这个$ES_PASSWORD样式为啥就不能用了?
需要哪个au3文件,请教一下了.
谢谢

[ 本帖最后由 木纳 于 2008-5-17 18:22 编辑 ]
发表于 2008-5-17 18:14:33 | 显示全部楼层

;
;
#include <EditConstants.au3>

;
;
 楼主| 发表于 2008-5-17 18:21:42 | 显示全部楼层
谢谢大大们
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-4-27 05:12 , Processed in 0.071531 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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