What is the difference between WM_CLOSE, WM_DESTROY, and WM_QUIT?

thebluetropics 1,046 Reputation points
2022-09-17T09:09:45.667+00:00

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.

Windows development Windows API - Win32
Developer technologies C++
{count} votes

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.