CRichEdit Font and Alignment
Posted on 2008-06-09
I've been encouraged by folks here to use CRichEdit rather than CScrollView to view reports so that the control has an out-of-the-box scrolling capability. This seems like a great idea, and I'm making a lot of progress. However, there are three things that I have left to figure out, and can't seem to find the answers.
I need a font for title lines, etc. How do I take the default font, and increase its size? I tried GetFont(), followed by GetLogFont and it doesn't seem to work. If I'm going to do that, I can just write a document, and open it in wordpad or something like that.
I need to present columns of numbers, so I need to be able to right justify within columns. I'd really prefer to stay away from courier.
I need to be able to make the document read only. I'm creating the documents within an MDI Doc/View architecture
Thanks in advance, Rick.