Originally posted by: loun
wei wei
Reply
Originally posted by: Chris
I created a auto rich edit ctrl with GetRTF and SetRTF functionality. when I read a RTF file with a bullet list at the end, and insert it with SetRTF in the rich edit ctrl, everything is ok. When I fill another rich edit ctrl with the SetRTF function and I use the return value of the GetRTF fucntion of the first rich edit ctrl, A bullet (with a smaller size then the bullets from my bullet list) is added to the end of my rich edit ctrl. This happens everytime I use the GetRTF fucntion (the bullets are added on the same line seperated with a tab). Anyone have a idea what could be the problem?
[edit] It seems that this problem only occurs under windows 2K, not in windows 98. I haven't tries windows XP[/edit]
Originally posted by: suncanoe
and how to set Style of the CRicheditView?
ReplyOriginally posted by: Neil I. Bozievich
Each time I submit text to the Rich Edit Control, I create a Header with a font table containing just the fonts loaded with Windows (various versions) as a default. Editing within the Control is fine, however, when the document is saved, the Header and font tags are re-written with only the fonts that were actually used. This makes it impossible to maintain consistency from PC to PC with the same application, as /f3 could be any of 4 fonts... How can I prevent the Control from re-writing the font table already submitted ?
ReplyOriginally posted by: Stefan Johansson
Hi!
I'd like to know if there is any way you can easily insert lies in an richedit control.
Best of all would be if I could send the string via SendMessage or any other "lowlevel" function in Windows.
ReplyOriginally posted by: J. Hill
I am having trouble reading a text file into a RichEdit control. Sometimes it works, and sometimes i get an error stating, "C0000005: Access violation" in riched20.dll and riched32.dll. This happens after the callback function it called repeadedly to read a file which has not reached the eof. Does any one know how to solve this problem?
ReplyOriginally posted by: Funkdoobiest
How can I change font colors?
Originally posted by: David C
I am using the LoadFile method on a richtext control to load a text file for viewing. However, when the file loads, instead of the file appearing as it does in Word Pad or a Text Editor, it wraps each line so that it fits within the display area. I have scroll bars turned on. Is there anyway to stop the word wrap from occurring?
ReplyOriginally posted by: WYON
Hello guys,
Excuse-me for my english !!
i try to load a large RTF file (>4.094 ko) into a RichEdit Control, and i lose all my data when i show it.
i try some ideas like :
- EM_EXLIMITTEXT (idea of Joel Vibert)
- S_OK and S_FALSE (idea of Lisa Beaulieu)
- idea of Maier
But anything is right.
Anybody can help me ?? Show me some codes ??
Originally posted by: Lance Carnes
Large RTF files (>64K) load slowly in WinNT/2000 compared to Win9x/ME. For example, using the EM_STREAMIN message, a 256K file will load in 2-3 seconds in Win9x/ME, yet it takes about 40 seconds in WinNT/2000.
Does anyone know how to improve the performance of CRichEditCtrl on WinNT/2000?
The timings stated are with the same application on the same machine. On WinNT/2000 WordPad shows the same slow loading, though MSWord loads the file quickly. I've tried RICHED20.DLL and RICHED32.DLL with the same results.