说三道四技术文摘-感悟人生的经典句子
说三道四 > 文档快照

确定 TextBox 有几行-VB资料

HTML文档下载 WORD文档下载 PDF文档下载
确定 TextBox 有几行-VB资料
声明:
Public Declare Function SendMessageLong Lib _
"user32" Alias "SendMessageA" (ByVal hwnd As Long, _
ByVal wMsg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Public Const EM_GETLINECOUNT="&HBA"
使用:
lineCount=SendMessageLong(Text1.hwnd, EM_GETLINECOUNT, 0&, 0&)

备案号:鲁ICP备13029499号-2 说三道四 www.s3d4.cn 说三道四技术文摘