I guess this could be a start:
Add to a Module.
Code:
Type EDITSTREAM
dwCookie As Long
dwError As Long
pfnCallBack As Long
End Type
Const WM_USER = &H400
Const EM_STREAMIN = (WM_USER + 73)
Const SF_TEXT = &H1
Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
Function EditStreamCallback(ByVal dwCookie As Long, ByVal pbBuff As Long, ByVal cb As Long, ByVal pcb As Long) As Long
End Function
Add to a Form
Code:
Private Sub Command1_Click()
Dim ES As EDITSTREAM
SendMessage RichTextBox1.hwnd, EM_STREAMIN, SF_TEXT, ES
End Sub