defa. serialisation()->cust. FileDialog 
Author Message
 defa. serialisation()->cust. FileDialog

Hi all,

My requirement was to add an extra filter into default
File->SaveAs Dailog for which I had to overide the
OnFileSaveAs function. I was successful in adding an extra
filter into it with a customised File Dialog. But, now I
want to have the same default Serialzation function to be
applicable to it. How do I call default Serialization
function?

heres the code :

void CMainDoc::OnFileSaveAs()
{
CFileCustDialog dlg("Save As", "Text File(*.txt) | RTF
File .rtf)", ".txt");                        

  if (dlg.DoModal() == IDOK) {
    CString filename = dlg.GetFilePath();
    int filterNumber = dialog.GetFilterNumber();

    //I hv displayed the customised dialog and now I hv
    //file path and the selected filter.

    //Here I want to call standard serialization function.
    //CArchive ar;
    //Serialize(ar);//How?????
  }    

Quote:
}

And added one more doubt to it? What should be the
contents of OnFileSave() function? Do i hv to override it
too??

Thanks in advance.



Tue, 22 Feb 2005 13:46:08 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. defa. serialization()-> custom. FileDialog

2. B>C>C++>VC++(MFC)>RAW API PROGRAMMING>ATL>COM>OLE>ADO>ASP.............

3. >>>>>>>>> What would you like in a debugger?

4. FileDialog Problem

5. FileDialog Problem

6. <<<<<<<Parsing help, please>>>>>>>>

7. ATL's FileDialog Control

8. Customised FileDialog but default serialzation()

9. FileDialog

10. FILEDIALOG - Open/ SELECT a FOLDER Not a FILE?!

11. Looking for Filedialog with graphics previre

12. Looking for Filedialog with graphics preview

 

 
Powered by phpBB® Forum Software