| | |
exit button
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Nov 2007
Posts: 978
Reputation:
Solved Threads: 208
•
•
•
•
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
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






