title: What is the difference between WM_QUIT, WM_CLOSE, and WM_DESTROY in a windows program?
body: <p>I was wondering what the difference between the WM_QUIT, WM_CLOSE, and WM_DESTROY messages in a windows program, essentially: when are they sent, and do they have any automatic effects besides what's defined by the program?</p>