How can I add "Auto save" like Microsoft word!
thank you!
Printable View
How can I add "Auto save" like Microsoft word!
thank you!
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.
Create a timer which will execute a seperate thread to call the save command.