Discussion:
shutting down an application
(too old to reply)
Z.K.
2006-07-07 18:53:25 UTC
Permalink
I have a formview project and I click on a button and it does a few things,
but then I want to exit the program. How do I do this? I tried OnClose(),
but that did not work. I also tried AfxGetApp()->ExitInstance and that did
not work either.

Z.K.
Scott McPhillips [MVP]
2006-07-07 19:13:53 UTC
Permalink
Post by Z.K.
I have a formview project and I click on a button and it does a few things,
but then I want to exit the program. How do I do this? I tried OnClose(),
but that did not work. I also tried AfxGetApp()->ExitInstance and that did
not work either.
AfxGetMainWnd()->PostMessage(WM_CLOSE, 0, 0);
--
Scott McPhillips [VC++ MVP]
Continue reading on narkive:
Loading...