What is the difference between WM_QUIT, WM_CLOSE, and WM_DESTROY in a windows program?
They are totally different. WM_CLOSE is sent to the window when it is being closed – when its “X” button is clicked, or “Close” is chosen from the window’s menu, or Alt-F4 is pressed while the window has focus, etc. If you catch this message, this is your decision how to treat it – ignore … Read more