I'm creating window a and using window b as the owner, but when I destroy a, the window directly behind b pops in front. Why is this so? I'm currently using SetForegroundWindow to compensate, but it causes it to flash. What should I do to fix this?
I'm creating window a and using window b as the owner, but when I destroy a, the window directly behind b pops in front. Why is this so? I'm currently using SetForegroundWindow to compensate, but it causes it to flash. What should I do to fix this?
Maybe this can help: The correct order for disabling and enabling windows
In short: first reenable the owner and then destroy the modal child.