locked
unfocusable application area RRS feed

  • Question

  • I'm trying to write an instant message client, and one of the features I would like, is for it to have a transparent or alpha blended contact list.  However, I'd also like for mouse actions to be performed *under* the contact list, without stealing focus from another application.  To focus on the contact list, and make it opaque, the user would click the title bar.

     

    So, my question is:

    Is there a way to draw to an area of the screen in such a way that it will not capture mouse events, and they will instead filter down to an active application where a mouse action is performed?

    or

    Is it possible for the mouse to move under a drawing area, in such a way that mouse events in this area will not steal focus?

    Thursday, April 24, 2008 7:39 PM

Answers

  • You can get some of what you want by using layered windows.  In Windows Forms, use the TransparencyKey property.  In native apps, use the SetLayeredWindowAttributes() API.
    Friday, April 25, 2008 5:48 PM