GetWindowTextLength

VB声明
Declare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Long) As Long
说明
调查窗口标题文字或控件内容的长短(在vb里使用:直接使用vb窗体或控件的caption或text属性)
返回值
Long,字串长度,不包括空中止字符
参数表
参数 类型及说明
hwnd Long,想调查文字长度的窗口的句柄