Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Adding font and color attributes to CEditView

Posted on 2000-05-09
10
Medium Priority
?
392 Views
Last Modified: 2013-12-03
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


0
Comment
Question by:raymondwee
  • 6
  • 4
10 Comments
 
LVL 10

Accepted Solution

by:
RONSLOW earned 210 total points
ID: 2795023
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
 

Author Comment

by:raymondwee
ID: 2795240
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
 

Author Comment

by:raymondwee
ID: 2795247
btw,
how do i print to the SDI windows char by char?
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 10

Expert Comment

by:RONSLOW
ID: 2795248
RichEdit is part of Windows .. no need for IE etc.

Check out the examples that come with VC.
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2795253
what do you mean by 'print the SDI windows char by char'?
0
 

Author Comment

by:raymondwee
ID: 2795354
Adjusted points from 50 to 70
0
 

Author Comment

by:raymondwee
ID: 2795355
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
 

Author Comment

by:raymondwee
ID: 2902724
Answer accepted
0
 

Author Comment

by:raymondwee
ID: 2902725
Thanks for your efforts.
I have switched to win32 programming instead.
0
 
LVL 10

Expert Comment

by:RONSLOW
ID: 2902742
This is not a MFC restirction .. it is a Win32 restriction.  Going to Win32 will probably not help.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

804 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