Link to home
Start Free TrialLog in
Avatar of pocono
pocono

asked on

MDI Application using CRichText?? Or getting over the 64k Cedit limitation

I am trying to create a program similar to notepad or Superpad that is one of MFC's examples but I NEED to open multiple file that are (most of the time) over 64k. I have been writting windows apps for about 5 years now in C and I am trying to get myself to move to MFC but are running into some pretty BIG walls. If someone can point me to some answer or sample code that would be great!

THANKS!!!!
ASKER CERTIFIED SOLUTION
Avatar of Answers2000
Answers2000

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pocono
pocono

ASKER

I was wonder can the richedit control be used in a MDI application, I have yet seen it used for mulitiple docs??
Yes - I've done it in my own s/w (and don't remember any wierd stuff that I had to work round - I think it all worked as expected - my apps actually had multiple RichEds, multiple form views & several other types too).

You need to make sure your views are are from CRichEditView, your docs from CRichEditDoc (pp758 in the above book) and if you get the hierachy right it should all work first time.  I have also tried splitters (multiple CRichEditViews on each CRichEditDoc, and this seems to work too - again I can't recall any problems).

If I find a sample that I'm free to give out, I'll post additional comments or a link.
Avatar of pocono

ASKER

Hi, Thanks!

I was just working on the RichEdit stuff today, I used RichEdit view and RichEditDoc and things were weird the cut and copy buttons where disabled some of the time when they should have been enabled and enabled when they should have been disabled. Like I said MFC is new to me and I know I can only take about a week or more of fighting with MFC before I go back api programming with straight C :)! But if you can find some samples that would be great!

Thanks again