You can see explanations at : Closing the Window
What is the difference between WM_CLOSE, WM_DESTROY, and WM_QUIT?
thebluetropics
1,046
Reputation points
There are three messages that probably sent when the window closes, WM_QUIT, WM_DESTROY, WM_CLOSE.
Is there any difference between these?
And what order they are sent? E.g WM_CLOSE sent first, or WM_DESTROY sent first.