Solved

RTF format showing in my program...

Posted on 2003-12-08
6
221 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 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

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…
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 viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

729 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