Click to See Complete Forum and Search --> : How can I add "Auto save" like Microsoft word


zhang xiu yong
April 1st, 1999, 10:55 AM
How can I add "Auto save" like Microsoft word!


thank you!

Santhosh Cheeran
April 1st, 1999, 12:45 PM
This can be done easily, create a separate thread process which fires a message after a certain fixed interval. Call your file save message handler, check the flag m_bModified or something, the dirty document flag in CDocument, if so save. I guess if you want to do it in the same fashioon as word does without a prompt, look into CDocument::OnSaveDocument() code by debugging, there is a way to save it without a prompt.

Jason Coene
April 1st, 1999, 02:39 PM
Create a timer which will execute a seperate thread to call the save command.