Private Declare Function SendMessage Lib "user32" Alias "SendMessageW" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long '声明发消息API
TracePrint getText(69198)
Function GetText(Arg_hwnd)
Dim S_TextLen
S_TextLen = SendMessage(Arg_hwnd, &HE, 0, 0) '发消息获取EDIT字符长度
S_strText = Space(S_TextLen) '以空格填充变量
Call SendMessage(Arg_hwnd, &HD, S_TextLen+1, S_strText) '发消息获取EDIT的内容
GetText = S_strText
End Function 作者: somyyy 时间: 2015-11-14 01:30
dllcall研究一下就明白了作者: 如此美丽。 时间: 2015-11-14 02:30 ..