Hi experts,
I have an Application in MFC using single dialog window.
Problem i am facing is, it exits when i press escape key.
i want it to exit when i press "Exit" button that i made my self and also by pressing "x"(default close button provided in dialog) button on top right corner of window but not by "esc" key.
I tried emptying the implementation of "OnCancel" function. It solves the problem of "esc" key, but it also disables, exit when i press "x" button.
Please help me, it is very annoying when i accidentally press exit and window goes away.
If possible, tell me way to add, minimize button along with "x"(close) button on the top.
Regards,
Swinder....