a quick MFC one

Started by
3 comments, last by Xelot 22 years, 5 months ago
I have a dialog based MFC project here. The problems is that if I add a RichEdit control to the dialog, it closes immeadiatly when I run it. Any ideas why?
Advertisement
Are you calling AfxInitRichEdit() in your app''s InitInstance before you create the dialog?
That does it. Thanks a lot.
Now I need to set the RichEdit text color. How to do that?
Fill in a CHARFORMAT structure and call SetDefaultCharFormat or SetSelectionCharFormat (depending on what you''re changing).
"Absorb what is useful, reject what is useless, and add what is specifically your own." - Lee Jun Fan

This topic is closed to new replies.

Advertisement