Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

exiting an SDI program

Status
Not open for further replies.

SamuelChae

Programmer
Mar 14, 2001
4
US
i have an SDI program and I want to make code so that if a bool called "m_change" is TRUE, then it asks the user if they want to save changes...i have the function, but i have 2 questions....where would i put this function and what function would i use to exit the sdi application, completely??
 
If you want to save changes you'll want to save the document. Look at CDocuments SaveModified() memeber function. You can then let the user exit the application the way all window apps are exited. Exiting automatically once a change is saved is not good practice unless you know that's what the user wants to do. It could be rather annoying if you're like me and like to save every 5 minutes in case of a power failure, etc.

Brother C
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top