Search found 3 matches

by MikeZ
Wed Jul 16, 2008 10:33 am
Forum: Support
Topic: How to send text to TRichView
Replies: 4
Views: 12760

Code (copy/paste from LoadFromStream) to send plain text (or RTF with 2 lines correction) to a window:
Function AdjustLineBreaks(Dest, Source: PChar): Integer; Assembler;
Asm
PUSH ESI
PUSH EDI
MOV EDI,EAX
MOV ESI,EDX
MOV EDX,EAX
CLD
@@1: LODSB
@@2: OR AL,AL
JE @@4
CMP AL,0AH
JE @@3
STOSB ...
by MikeZ
Wed Jul 16, 2008 9:18 am
Forum: Support
Topic: How to send text to TRichView
Replies: 4
Views: 12760

Thanks.
by MikeZ
Tue Jul 15, 2008 7:03 pm
Forum: Support
Topic: How to send text to TRichView
Replies: 4
Views: 12760

How to send text to TRichView

Hello!

I have the first program with TRichView and the second one to manage it.

I do SendMessage(Wnd, WM_GETTEXT, 0, 0) to get text from 1st prog's TRichView. Unfortunatelly WM_SETTEXT does not work. How I can:
1. Obtain RTF-text from TRichView to the other program? (WM_GETTEXT get only plain text ...