Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Can an image be added to CRichEditCtrl ?

6 views
Skip to first unread message

Svetlana

unread,
Sep 30, 2001, 4:47:59 PM9/30/01
to
Hi,

I need control like a reach edit control , but I need possibility add an
image , too. Is it possible ? May be there is another control ?

Tanks for any help.


Svetlana

unread,
Sep 29, 2001, 6:17:53 PM9/29/01
to

Svetlana

unread,
Sep 30, 2001, 4:47:59 PM9/30/01
to

Svetlana

unread,
Sep 29, 2001, 6:21:22 PM9/29/01
to

Max Lu

unread,
Oct 2, 2001, 4:14:04 AM10/2/01
to
Hi Svetlana,

My name is Max Lu. Thank you for using the Microsoft VC.MFC Newsgroups.
The RichEdit control does not provide a direct method for loading a bitmap
and inserting it into an RTF document. The ActiveX control (RichTextBox)
provides the Add method through the COleObjects class, but this action
loads the bitmap for editing in the registered bitmap editor (usually
Paintbrush) before inserting it into the document. Both the DLL and the OCX
expose the IRichEditOle interface which, however, provides the InsertObject
method. This requires a fully-populated RichEdit Object (REOBJECT)
structure to be passed.

For more information, please visit
http://support.microsoft.com/support/kb/articles/Q220/8/44.ASP

There's another helpful article about how to using bmp image in Rich Edit
control http://codeguru.earthweb.com/richedit/richeditrc.html

If you have any questions or concerns, please feel free to tell me.

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. ? 2001 Microsoft Corporation. All rights
reserved.

Regards,

Max Lu
Microsoft Support

0 new messages