I have a dialog based application in which the main dialog is disabled and invisible. There is one instance in where my application, an OLE Server, will pop up a dialog that is not the main dialog. When the user clicks on OK, focus is sent to my invisible, disabled dialog for the application (its parent).

How can I keep Windows from setting focus on my main dialog? The application icon does not appear in the Alt-Tab task list.

Thanks.

Michael Gombar
[email protected]