[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 396
  • Last Modified:

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


0
raymondwee
Asked:
raymondwee
  • 6
  • 4
1 Solution
 
RONSLOWCommented:
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

 
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

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 6
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now