How to insert a bitmap into an RTF document using the RichEdit control in Visual C++ 6.0 (220844)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q220844 SUMMARY 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.
Modification Type: | Major | Last Reviewed: | 4/28/2005 |
---|
Keywords: | kbinfo kbBitmap kbCtrl kbhowto kbRichEdit KB220844 kbAudDeveloper |
---|
|