找回密码
 加入
搜索
查看: 1998|回复: 1

[GUI管理] 点击input弹出对话框 的实现(多个窗体,多个input)

[复制链接]
发表于 2011-4-26 08:32:06 | 显示全部楼层 |阅读模式
本帖最后由 leenkon 于 2011-4-26 08:33 编辑
#include <WindowsConstants.au3>
$hGUI = GUICreate("Test", 400, 300)
$btn = GUICtrlCreateButton("添加记录", 88, 32, 57, 25)
GUISetState(@SW_SHOW)
GUIRegisterMsg($WM_NOTIFY, "WM_Notify_Events")
While GUIGetMsg() <> -3
WEnd
Func WM_Notify_Events($hWndGUI, $MsgID, $wParam, $lParam)
        Global $tabim
        #forceref $hWndGUI, $MsgID, $wParam
        Local $tagNMHDR, $event, $hwndFrom, $code
        $tagNMHDR = DllStructCreate("int;int;int", $lParam) ;NMHDR (hwndFrom, idFrom, code)
        If @error Then Return
        $event = DllStructGetData($tagNMHDR, 3)
        Select
                Case $wParam = $btn
                        Select
                                Case $event = $NM_Click
                                        MsgBox(0, "df", "fsd")
                        EndSelect
        EndSelect
        $tagNMHDR = 0
        $event = 0
        $lParam = 0
EndFunc   ;==>WM_Notify_Events


我想点击input的 时候弹出一个 对话框,同时,有多个窗体,多个input,想请教高手,,怎么写代码?诚谢
发表于 2011-4-28 01:13:57 | 显示全部楼层
Case $EN_SETFOCUS
您需要登录后才可以回帖 登录 | 加入

本版积分规则

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

GMT+8, 2024-9-21 08:26 , Processed in 0.079698 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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