I want to detect wish supapplication is on top and is active.
I also want to intercept "close" command on each MDI window and on principal window to prompt the user if he want to Save, don't save or cancel close operation.
It's also possible to define an custom icon for each MDI window ?
How can I do this ?