本帖最后由 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,想请教高手,,怎么写代码?诚谢 |