I'm creating a modeless dialog that I want the use to be able to leave open while working in the main window. Problem is, the modeless dialog is still on top when the main window gets focus. Do I have to catch a message in the main window's procedure when it gets focus and use SetWindowPos? If so, what bloody message? I can't find anything on MSDN.