Adding font and color attributes to CEditView

How do I change my font and color of the text to be output to screen and to a file?

I can change those attributes and fwrite to a file, right?

The App Wizard I used is MFC with SDI and CEditView option. The rest are default.

Thx


raymondweeAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
RONSLOWConnect With a Mentor Commented:
you cannot save colour and font to a text file with CEditView .. it only handles ASCII text.

You can change the font and colour for the whole eidt box .. but that is not saved in a file

You want a CRichEditView - based app

Look at the Superpad app and other MFC samples
0
 
raymondweeAuthor Commented:
Thx.
I am trying not to use IE or netscape dll or lib.
Would CRichEdit use those dll?
I mean I would like something that is independent of IE and netscape. And also as few windows dll as possible.
0
 
raymondweeAuthor Commented:
btw,
how do i print to the SDI windows char by char?
0
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

 
RONSLOWCommented:
RichEdit is part of Windows .. no need for IE etc.

Check out the examples that come with VC.
0
 
RONSLOWCommented:
what do you mean by 'print the SDI windows char by char'?
0
 
raymondweeAuthor Commented:
Adjusted points from 50 to 70
0
 
raymondweeAuthor Commented:
i mean:
after user keyed in the filename to open in the fileopen dialog, I want to take this file and open it in my application. After processing, I want to print char by char to the window screen. Bypass the CArchive, I think...
btw, I am not too sure how it works from the time user input the filename till the text is displayed on the SDI window.

Can you explain?
Thanks
0
 
raymondweeAuthor Commented:
Answer accepted
0
 
raymondweeAuthor Commented:
Thanks for your efforts.
I have switched to win32 programming instead.
0
 
RONSLOWCommented:
This is not a MFC restirction .. it is a Win32 restriction.  Going to Win32 will probably not help.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.