Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

RTF format showing in my program...

Posted on 2003-12-08
6
Medium Priority
?
223 Views
Last Modified: 2010-04-01
Hi,

I need to know how to make a program, witch could show text and PICTURES like MS Word. I need to be able to write something in Word then copy it and paste into my program. I know that rtf can be shown using rich edit, but it doesnt show pictures... Any suggestions?

Thanx for reading...
0
Comment
Question by:MatriX
[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 48

Expert Comment

by:AlexFM
ID: 9902269
Use CRichEditCtrl or CRichEditView. You can use Paste Special to insert any type of insertable objects into rich edit control.
Check out WORDPAD MFC sample.
0
 

Author Comment

by:MatriX
ID: 9910048
Hmm, you should know, that i'm only a beginer in windows programming with only OOP and i dont know how to use that CRichEditCtrl. I'm using VC++ 6 and when i try to use that CRichEditCtrl my program just doesnt work; it compiles but doesnt appera when i run it. I am using class CRichEditCtrl on Rich Edit field, maybe thats my problem... And right now i cant find that WORDPAD example... Please help!
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 9910194
1) From MSDN:
Important   If you are using a rich edit control in a dialog box (regardless whether your application is SDI, MDI, or dialog-based), you must call AfxInitRichEdit once before the dialog box is displayed. A typical place to call this function is in your program’s InitInstance member function. You do not need to call it for each time you display the dialog box, only the first time. You do not have to call AfxInitRichEdit if you are working with CRichEditView.

2) Type WORDPAD in MSDN index and open topic WORDPAD sample (MFC).
0
 
LVL 48

Accepted Solution

by:
AlexFM earned 1600 total points
ID: 9910196
I mean: Type WORDPAD in MSDN Library index.
0
 

Author Comment

by:MatriX
ID: 9910387
Hmm, thanx for help... i now have an example which does what i want. Unfortunately it does a lot more... :( and i'm not that experienced that i could find what i need easily... U know, i'm only 17 years old... Hmm, any help on how to get what i need from it and throw out all those other nonsences?
BTW, i need only to be able to show all those things that that wordpad shows. It would be great to be able to show it in dialog box in some object... And those editing things... Well, maybe i could use those, but it may be too hard for me :(
I'm creating a program which could show text like that wordpad does, but in one part or maybe version of my program i need only to show it, and in the other, maybe, edit it... also i'll need saving and loading, but i hope that that wont be too hard, i hope...
well, thatnx for your help again, any more help on how to extract the things i need from it? :)
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

604 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