Link to home
Start Free TrialLog in
Avatar of nicr
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.
Avatar of gelbert
gelbert

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
Avatar of nicr

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
Avatar of kburns102197
kburns102197

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nicr

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?
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