Always on top window blocks modal msgbox
Posted on 2002-04-25
I'm using the SetWindowPos API with the HWND_TOPMOST parameter to create an always-on-top window.
Depending on where the window is positioned on the screen, it can sometimes appear on top of a modal message box. The always-on-top window can't be moved because the modal window behind it has focus.
How can I disable the always-on-top behavior when the window with focus is modal? I would also like to re-enable the always-on-top behavior when the modal window is closed?