Click to See Complete Forum and Search --> : How to exit ?


critesh
July 6th, 1999, 04:01 AM
Hi all,
i want to give an option in my VC++ application so that user can quit from appl.i am giving an option in the menu.what action should i take to quit ?
bye

Lothar Haensler
July 6th, 1999, 04:10 AM
you could call PostQuitMessage.

Fabi Pantera
July 6th, 1999, 04:19 AM
You could use :
AfxGetMainWnd()->PostMessage(WM_CLOSE, NULL, NULL)
Best regards,
Faby