Alt - F4

Started by
0 comments, last by abdulla 22 years, 3 months ago
what message does alt-f4 send to the message loop and what message does task manager send to a process its terminating? there seems to be a difference because my program properly terminates with task manager, but when i use alt-f4 it closes and disappears but still appears as a process in task manager using 90-100% cpu time
Advertisement
WM_CLOSE

its a standard accelerator for clicking the close icon for your window.

If your process still appears in the task manager you''ve probably forgotten one of:

- DestroyWindow()
- PostQuitMessage()
- to exit your message pump correctly

--
Simon O''''Connor
Creative Asylum Ltd
www.creative-asylum.com

Simon O'Connor | Technical Director (Newcastle) Lockwood Publishing | LinkedIn | Personal site

This topic is closed to new replies.

Advertisement