Hi,
I program with Visual C++ .NET 2003.
I have an application that I want to quit if a specific
date is passed. (the user will not choose Quit in the menu)
I want to terminate the application in the OnClose member
function of my CApplicationView class.
I have tried with various methods like
PostMessage(WM_DESTROY, 0, 0) or PostQuitMessage(0) without success.
Does anybody have suggestions ?
Thanks,
Claude
Nishant Sivakumar - 26 May 2005 05:13 GMT
PostMessage a WM_CLOSE to your main window (AfxGetMainWnd )

Signature
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com
> Hi,
> I program with Visual C++ .NET 2003.
[quoted text clipped - 13 lines]
>
> Claude