Dim test() As String
Dim row, col As Long
test() = Split(RichTextBox1.Text, vbCrLf)
row = UBound(test) + 1
col = Len(test(row - 1))获取Row和COlumn了
Dim row, col As Long
test() = Split(RichTextBox1.Text, vbCrLf)
row = UBound(test) + 1
col = Len(test(row - 1))获取Row和COlumn了
lxy = SendMessage(rtfMain.HWnd, EM_POSFROMCHAR, lPos, 0) xPixels = (lxy And &HFFFF&)
yPixels = (lxy \ &H10000) And &HFFFF&
xPixels = xPixels * Screen.TwipsPerPixelX
yPixels = yPixels * Screen.TwipsPerPixelY