I have a window that I am using as a sort of dialog box (that is, it's not an actual dialog). It does not have the WS_CHILD style and it was created with the parent HWND_DESKTOP. Still, when I close the window, the entire program exits. Not exactly what I wanted! I have searched the headers for possible CS_ and WS_ styles but find nothing that might disable this feature. Any clues?