abut Escape key and a dialog
-
When i press an Escape Key ...during my application dialog is opend. it becomes dissapear. how can i handle this stupid way of escape key that on press it my dialog not dissappear. thanx
-
When i press an Escape Key ...during my application dialog is opend. it becomes dissapear. how can i handle this stupid way of escape key that on press it my dialog not dissappear. thanx
-
Override OnOk and OnCancel functions (to do nothing or if you would like to handle them do not call CDialog::OnOk (OnCancel) in them). "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix
i did it ,, but situation is same ,, dialog dissapears on Escape key. tellme the right way by example of code line thanx
-
i did it ,, but situation is same ,, dialog dissapears on Escape key. tellme the right way by example of code line thanx
If CTestDialog is ur Dialog class, then add implementation void CTestDialog::OnCancel() { //Remember the function body has nothing } the problem was occuring because ur app must have had the implementation below: void CTestDialog::OnCancel() { CTrayDialog::OnCancel(); }
-
i did it ,, but situation is same ,, dialog dissapears on Escape key. tellme the right way by example of code line thanx
void yourclass::OnCancel(){ //do something but do not call CDialog::OnCancel(); }
I once had the same problem and I solved it like this. (try both OnOK and OnCancel maybe) if this doesn't work I wouldn't know sorry. "If I don't see you in this world, I'll see you in the next one... and don't be late." ~ Jimi Hendrix