Archived

This topic is now archived and is closed to further replies.

RichEdit help

This topic is 4944 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Guy, please help a newb here I have set up a RichEdit Box successfully, but I don''t know how do I go about inserting a string into it. Assume I have a string variable called buf. I have this: SendMessage(hList, EM_STREAMIN, (WPARAM)SF_RTF, (LPARAM)(LPCTSTR)buf); hList is the handle to the RichEdit Box, is this how I do it? and I have this EditStreamCallback function set up: DWORD CALLBACK EditStreamCallback(DWORD dwCookie, LPBYTE pbBuff, LONG cb, LONG *pcb) { char* string = (char*)dwCookie; pbBuff = string; return 0; } Please let me know what is wrong in this picture and how do I go about fixing it..Thanks a lot

Share this post


Link to post
Share on other sites