|
*API函数声明Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As LongPublic Const EM_GETLINECOUNT = &HBA注释:在程序中调用LineCnt = SendMessage(ctl.hwnd, EM_GETLINECOUNT, 0, 0)注释:LineCnt即为此TextBox的行数。 |
|
共 1 个关于本帖的回复 最后回复于 2013-7-2 13:13