Solved

RTF format showing in my program...

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

Suggested Solutions

Title # Comments Views Activity
AVI wait icons for CAnimateCtrl in Visual Studio 2008 MFC 1 161
computer science syllabus 3 102
Least Squares Curve Fitting 4 116
Adding items to a C# list incrementally 5 62
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
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…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.

733 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