Jump to content
  • Advertisement

Archived

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

yial2

RichEdit help

This topic is 5285 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
Advertisement

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!