How can I set the text of a RichEdit control using APIs?
Printable View
How can I set the text of a RichEdit control using APIs?
Try sending either WM_SETTEXT or EM_REPLACESEL.
Thanks a lot, that worked just fine. Now what I want to do is set the alignment for the Send Message window in MSN Messenger to 'Right Aligned'. I tried EM_SETPARAFORMAT, it worked fine on a RichEdit Control in my VB Project, but it is not working on the RichEdit in MSN Messenger. Can you tell me how to do it?