Re: Making sure data is saved on closing application
- From: "kizmet space adventures (remove 'not.' for emailing)" <pleasedo.not.mailme@xxxxxxxxxxxxxx>
- Date: Thu, 22 Dec 2005 20:28:15 GMT
On Thu, 22 Dec 2005 17:57:46 GMT, "AliR" <AliR@xxxxxxxxxxxxx> wrote:
>MessageBox requries a parent window.
>And AfxMessageBox doesn't.
>
Yes, thank you, that makes sense to me.
>AliR.
>
>"kizmet space adventures (remove 'not.' for emailing)"
><pleasedo.not.mailme@xxxxxxxxxxxxxx> wrote in message
>news:i8plq11j0c51aov2gmv2pheofi4r33ee4j@xxxxxxxxxx
>> On Tue, 20 Dec 2005 21:01:32 GMT, "AliR" <AliR@xxxxxxxxxxxxx> wrote:
>>
>> >It seems that you are writting a Doc/View application. I would take over
>> >CDocument::SaveModified() and do it there.
>> >Make user you call SetModifiedFlag so that SaveModified gets called.
>> >
>>
>> Thanks for this! I am now making some progress using this approach. I
>> had been using a 'MessageBox' call in the SaveModified function but I
>> don't think it was doing anything. I must have made a mess of how I
>> was using it. Anyway I have replaced that with AfxMessageBox and now I
>> get a message when I close the application using the outermost 'X'
>> button. Hurrah!
>>
>> If anyone could give me a quick explanation of the difference between
>> MessageBox and AfxMessageBox I would be very interested to know...
>
.
- References:
- Making sure data is saved on closing application
- From: kizmet space adventures (remove 'not.' for emailing)
- Re: Making sure data is saved on closing application
- From: AliR
- Re: Making sure data is saved on closing application
- From: kizmet space adventures (remove 'not.' for emailing)
- Re: Making sure data is saved on closing application
- From: AliR
- Making sure data is saved on closing application
- Prev by Date: Re: how to end a thread from the main thread
- Next by Date: Re: Making sure data is saved on closing application
- Previous by thread: Re: Making sure data is saved on closing application
- Next by thread: Re: Making sure data is saved on closing application
- Index(es):