![]() |
#2
风吹过b2013-04-03 19:07
|
Const EM_GETLINE = &HC4
Const EM_LINELENGTH = &HC1
Const EM_LINEINDEX = &HBB
Const EM_GETLINECOUNT = &HBA
Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hWnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Private Sub Command1_Click()
Text2.Text = SendMessage(Text1.hWnd, EM_GETLINECOUNT, 0&, 0&)
End Sub