CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Can I refuse focus?

    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]


  2. #2
    Guest

    Re: Can I refuse focus?

    Obviously, windows sends a message when it gains focus, you could simply put in a statement in that function to lose focus again


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured