Solved

RTF format showing in my program...

Posted on 2003-12-08
6
212 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
  • 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 400 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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…

705 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now