How to save the containts of Child Window

Dear Friends
      I am working on MDI application. I have 10 child frame and all are having different text messages. I want to save the containts of Active child frame in the .txt file that will have the name of Active child winow's Name . How Can I do this.

Please help me

Thanks & Regards
Sanjay
sanjaysingh1975Asked:
Who is Participating?
 
AndyAinscowFreelance programmer / ConsultantCommented:
I assume a doc-view structure.

From what you want I would use the serialize function supplied in the doc but rather than call the normal archiving open/create a text file with the name of the view associated with the doc and use the CStdioFile and it's member functions.
Using the serialize function allows you to determine if it is loading or saving.
0
 
Roshan DavisCommented:
Map the ID_FILE_SAVE to your CEditDerivedView.

Rosh :)
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
My comment would be a way to achieve the desired effect
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.