Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Picture in CRichEditCtrl

Posted on 2000-03-30
6
Medium Priority
?
792 Views
Last Modified: 2011-09-20
What is the most convenient way to read a picture (.bmp,.gif,.jpg,...) from a file and insert it into CRichEditCtrl for to print together with text. I dont need to edit the picture inside CRichEditCtrl/CRichEditView!
0
Comment
Question by:4C
  • 3
  • 2
6 Comments
 
LVL 6

Expert Comment

by:MichaelS
ID: 2673024
OleCreateFromFile() function for loading and after that you have to use an OLE interface from reachedit to insert it.
0
 
LVL 23

Expert Comment

by:chensu
ID: 2673975
Inserting a bitmap file into a CRichEditCtrl
http://www.codeguru.com/richedit/rtfbitmap.shtml
0
 

Author Comment

by:4C
ID: 2686408
Thanks a lot for answer! I have tried (successfully) the method you suggest. The problem that remains unsolved is, how to handle pictures in other fileformats (.jpg,.gif, ...)!
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 23

Expert Comment

by:chensu
ID: 2686431
You have to convert other file formats into the bitmap file format.
0
 

Author Comment

by:4C
ID: 2686612
Thanks again! I've never done before this kind of fileformat conversions. Please give me a clue how and at which stage of the process (CreateFromFile->REOBJECT->InsertObject) to make the conversion.
0
 
LVL 23

Accepted Solution

by:
chensu earned 300 total points
ID: 2687344
The easiest way is to call a third party utility to convert the files before CreateFromFile. It is hard to find such a utility for free. But there must be some commerical products.
0

Featured Post

[Webinar] Cloud Security

In this webinar you will learn:

-Why existing firewall and DMZ architectures are not suited for securing cloud applications
-How to make your enterprise “Cloud Ready”, and fix your aging DMZ architecture
-How to transform your enterprise and become a Cloud Enabler

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question