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