Closing application in InitDialog()
-
Hi, How do i close my application in InitDialog() According to some checkings i want to terminate my application.. I've tried EndDialog.. and DestroyWindow() Please help
-
Hi, How do i close my application in InitDialog() According to some checkings i want to terminate my application.. I've tried EndDialog.. and DestroyWindow() Please help
-
Yes, my application is a Dialog Based MFC Application
-
Yes, my application is a Dialog Based MFC Application
-
Then, it should work with EndDialog. I've created a test application and i've put: EndDialog(0); // adding this!!! return TRUE; // return TRUE unless you set the focus to a control The application is stopping immediately. rechi
You can call EndDialog, but don't use '0' as argument: use IDOK or IDCANCEL instead. -- Alex Marbus www.marbus.net But then again, I could be wrong.
-
You can call EndDialog, but don't use '0' as argument: use IDOK or IDCANCEL instead. -- Alex Marbus www.marbus.net But then again, I could be wrong.
-
You can call EndDialog, but don't use '0' as argument: use IDOK or IDCANCEL instead. -- Alex Marbus www.marbus.net But then again, I could be wrong.
You can use 0. You can use 13259. The argument to EndDialog is just the value that is returned to the application. IDOK and IDCANCEL are used so application can tell which control closed the dialog. Tim Smith I know what you're thinking punk, you're thinking did he spell check this document? Well, to tell you the truth I kinda forgot myself in all this excitement. But being this here's CodeProject, the most powerful forums in the world and would blow your head clean off, you've got to ask yourself one question, Do I feel lucky? Well do ya punk?