nicr
asked on
Inserting an Image into a Rich Edit Control
How do I insert an image into a Rich Edit Control?
It needs to be pretty fast.
It needs to be pretty fast.
Make CStatic member of your class derived from CRichEditCtrl. And use this member to display images by showing and hiding its window and resetting images
ASKER
Perhaps I need to clarify my question as well. The image needs to be inline with text already displayed in the Rich Edit control.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry about the delay. The only problem with this
method is that it destroys the clipboard contents. How do I avoid this from happening?
method is that it destroys the clipboard contents. How do I avoid this from happening?
This the generally accepted method of performing this function. Simply save the clipboard contents first , make your transfer, then retore it. Let me know if you need more details.. kburns