Multiple choice technology programming languages

The WM_DESTROY message is sent to a window just before it is destroyed.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

WM_DESTROY is sent when a window's non-client area is being destroyed, just before destruction completes. This is the appropriate time for cleanup operations like releasing resources, freeing memory, and destroying child windows. After WM_DESTROY, the window procedure receives WM_NCDESTROY.