| | |
exit button
Please support our C++ advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Nov 2007
Posts: 980
Reputation:
Solved Threads: 210
•
•
•
•
hi
i have an application made of several dialogs
each has its own exit button
my question:
whan i press the exit button ... iwant to exit the whole application (not exit the present dialog and return to the Previous one )
how can i do that .....please help me out with this
thank u all
In the event handler for the exit button send a WM_QUIT event message to the program's main thread. More information is discussed here.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
•
•
Join Date: May 2008
Posts: 99
Reputation:
Solved Threads: 1
ah i just coded a win32 application and i used the following:
Quit program ( the [ x ] ) in the corner
you could also do
PostQuitMessage();
http://msdn.microsoft.com/en-us/libr...45(VS.85).aspx
I hope i did this correctly because last time i tryed to give help i got a warning
Quit program ( the [ x ] ) in the corner
C++ Syntax (Toggle Plain Text)
case WM_DESTROY: { PostQuitMessage(0); break; }
you could also do
C++ Syntax (Toggle Plain Text)
case <button name>: { PostQuitMessage(0); break; }
PostQuitMessage();
http://msdn.microsoft.com/en-us/libr...45(VS.85).aspx
I hope i did this correctly because last time i tryed to give help i got a warning
Last edited by FTProtocol; Jun 29th, 2008 at 7:22 am.
![]() |
Similar Threads
- Exit code and prompting message box (ASP.NET)
- GUI Window - Exit Button? (Java)
- IE resets home page to "about blank" upon exit (Viruses, Spyware and other Nasties)
- camelNotation: IE resets home page to "about blank" upon exit (Viruses, Spyware and other Nasties)
Other Threads in the C++ Forum
- Previous Thread: while & if statement
- Next Thread: SQL Library
Views: 1531 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for C++
6 api array arrays beginner binary bmp c++ c/c++ calculator char class classes code compile compiler console conversion convert count data delete desktop directshow dll download dynamic encryption error file forms fstream function functions game givemetehcodez google graph gui iamthwee ifstream input int java lib library lines linkedlist linker loop looping loops map math matrix memory microsoft newbie news number output pointer problem program programming project python random read recursion recursive reference return sort stream string strings struct studio system temperature template templates test text text-file tree unix url variable vector video visual visualstudio void win32 windows winsock wordfrequency wxwidgets






