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 API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,584 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,687 questions
{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.