So… I want my engine to be able to switch between game (one swapchain) and editor (4 swapchains)…
For that to happen I am creating a main window from which I create a child window to render my in-game content (which later could be 4 child windows when switching to the editor)… so far everything looks ok… BUT… handling windows messages is a mess…
If I try to close the window pressing the X button on top neither the main parent window nor the child window seem to recieve the WM_CLOSE / WM_DESTROY message… although they both recieve WM_SETFOCUS / WM_KILLFOCUS messages, and the child window recieves all the mouse/paint messages.
Has anyone experience working with parent/child windows message handling who could tell how to deal with the CLOSE/DESTROY messages?…