I've got 5 windows, opened in sequence.
In WM_INITDIALOG i push the window handle to a stack.
In WM_DESTROY, i pop the HWND from the stack, and SetActiveWindow(winStack->GetTop()).
In WM_SETFOCUS i BringWindowToTop(winStack->GetTop()) & SetActiveWindow(winStack->GetTop());
This works fine until i get to the main window(doesn't take keyboard input).
When i used CreateWindow earlier, these methods made the last opened window "modal". This isn't happening anymore, so there must be some kind of default processing for dialog..?
Does this mean that i have to subclass the entire dialog? In that case i might as well use CreateWindowEx()..