Click to See Complete Forum and Search --> : Can I refuse focus?


April 12th, 1999, 11:25 AM
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
mgombar@bigfoot.com

May 25th, 2000, 12:39 PM
Obviously, windows sends a message when it gains focus, you could simply put in a statement in that function to lose focus again