There must be a way to detect whether a dialog box is running modal or not!
I can't find anywhere...
P.S.: I have an idea: when a dialog is modal, t has a particular modal loop message handler whicch is different from the WindowProc of the application..if we could compare their addresses we might find if it is in modal loop, right??