?
Solved

Picture in CRichEditCtrl

Posted on 2000-03-30
6
Medium Priority
?
791 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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 viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Suggested Courses

800 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