I've decided that I'm not in touch with these wasteful APIs anymore, and I'm back for DirectX programming. Microsoft, your stuff is really deceptive.
Before using this thing when you need to check, check out on the forgotten, this time remember, and later use also do not forget too outrageous.
Windows Notifications
Wm_close inform the program you should be terminate, but the rest will not do anything, just a hint. Often used to prompt for saving before closing a program. Occurrence time: Earliest
Wm_destroy occurs when a program's window is destroyed, indicating that the program is being terminate, and should call PostQuitMessage to terminate the message queue. Occurrence time: Middle
Wm_quit is sent when the call is PostQuitMessage. At this point the program is dead. Returns a 0 for the GetMessage function. Occurrence time: Latest
Functions
PostQuitMessage (int ExitCode)
This function tells the system that a program needs to be terminate and sends a WM_QUIT message that wparam contains the value of ExitCode.
WIN32 Programming Notes