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!

Save changes before exiting like in word processer

Status
Not open for further replies.

SamuelChae

Programmer
Mar 14, 2001
4
US
i have an SDI , and i was wondering WHERE i would put the function to toggle if a bool is true or false, and therefor, ask the user if they want to save before exiting the program
 
If it were me, don't think I'd use a BOOL variable in this situation. Would just use a MessageBox() with a YES|NO reply to it. I would put it in the exit function, in the menu. If the MessageBox() reply came back as a YES then I'd call the program to seralize there, if not, then exit.

Hope this helps,

Nyjil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top