我的一个程序中:
Public Function GetText(Win_hwnd As Long) As String
Dim WinTxtLen As Long
Dim WinTxt As String
WinTxtLen = SendMessage(Win_hwnd, WM_GETTEXTLENGTH, 0, 0)
WinTxtLen = WinTxtLen + 1
WinTxt = Space$(WinTxtLen)
WinTxtLen = SendMessage(Win_hwnd, WM_GETTEXT, WinTxtLen, ByVal WinTxt)
GetText = Left$(WinTxt, WinTxtLen)
End Function
用此函数可以得到98下的某一程序的窗口的userword和password,但是,在win2000下,却不行,请问这是问什么? 无论晴天也好雨天也好,我希望和你一起度过~~~~~风笛~~~
Public Function GetText(Win_hwnd As Long) As String
Dim WinTxtLen As Long
Dim WinTxt As String
WinTxtLen = SendMessage(Win_hwnd, WM_GETTEXTLENGTH, 0, 0)
WinTxtLen = WinTxtLen + 1
WinTxt = Space$(WinTxtLen)
WinTxtLen = SendMessage(Win_hwnd, WM_GETTEXT, WinTxtLen, ByVal WinTxt)
GetText = Left$(WinTxt, WinTxtLen)
End Function
用此函数可以得到98下的某一程序的窗口的userword和password,但是,在win2000下,却不行,请问这是问什么? 无论晴天也好雨天也好,我希望和你一起度过~~~~~风笛~~~
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货