Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumshow to recognize that SWT windows are covered by other transparent windows?
https://www.eclipse.org/forums/index.php/mv/msg/148510/467218/#msg_467218
Originally posted by: mckaot.gmx.net
here a question that differs from all the others concerning transparency:
I know how to check if somebody painted directly into "my" SWT window area.
I also know how to find out if "my" SWT window is covered (partly or
completely) by an other window - as long as this window is a "normal" one
- but if it uses Microsoft's UpdateLayeredWindow(..) or SetWindowLong(..)
with GWL_EXSTYLE I don't "see" it, even if its transparency is set to 255!
Is there a way to discover such things within SWT?
best regards]]>2006-01-26T16:20:24-00:00Re: how to recognize that SWT windows are covered by other transparent wind
https://www.eclipse.org/forums/index.php/mv/msg/148510/467243/#msg_467243
Daniel Spiewak2006-01-27T02:53:11-00:00Re: how to recognize that SWT windows are covered by other transparent wind
https://www.eclipse.org/forums/index.php/mv/msg/148510/467273/#msg_467273
Originally posted by: mckaot.gmx.net
Monitoring paint events is exactly what I do to determine that "my" window is covered: if it's covered completely, "my" paints are blocked, otherwise paint event's gc is clipped.
I also can read back paint event's gc content and compare it with "my" contents (which I placed there myself during last paint!).
BUT: if the window actually covering "my" window is able to be transparent (even if the alpha value is 255) these tricks don't help.. What can I do (maybe via JNI) to correct that habit.. any idea?