shetlandbob
Programmer
Ok,
Ive got a MFC dialog application, when I hit escape then it quits. I know this is calling the OnCancel() function, but if I override this how do I make the application quit from either the menu (my menu exit call ID_APP_EXIT - which in turn calls OnCancel()) or from the "X" in the top right of the dialog.
I'm pretty sure this is fairly straight forward, but cant for the life of me figure it out.
Thanks
Ive got a MFC dialog application, when I hit escape then it quits. I know this is calling the OnCancel() function, but if I override this how do I make the application quit from either the menu (my menu exit call ID_APP_EXIT - which in turn calls OnCancel()) or from the "X" in the top right of the dialog.
I'm pretty sure this is fairly straight forward, but cant for the life of me figure it out.
Thanks