Solved

Picture in CRichEditCtrl

Posted on 2000-03-30
6
781 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

772 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