首页
社区
课程
招聘
怎么得到Edit控件输入字符串的长度?
发表于: 2005-11-16 18:51 7356

怎么得到Edit控件输入字符串的长度?

2005-11-16 18:51
7356
用什么API可以得到EDIT控件,已经输入字符串的长度

[课程]Linux pwn 探索篇!

收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 4833
活跃值: (2218)
能力值: ( LV9,RANK:170 )
在线值:
发帖
回帖
粉丝
2
int lstrlen(

    LPCTSTR lpString         // address of string to count  
   );       

Parameters

lpString

Points to a null-terminated string.

Return Values

If the function succeeds, the return value specifies the length of the string in bytes (ANSI version) or characters (Unicode version).
2005-11-16 18:56
0
雪    币: 239
活跃值: (20)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
3
VB下的声明方式:VC请查看MSDN
Declare Function GetWindowTextLength Lib "user32" Alias "GetWindowTextLengthA" (ByVal hwnd As Long) As Long
2005-11-18 13:34
0
雪    币: 217
活跃值: (99)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
4
int GetWindowTextLength(
  HWND hWnd   // 含有文本的窗口或控件句柄
);
2005-11-18 17:47
0
游客
登录 | 注册 方可回帖
返回
//