Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Q] Making a window transparent to mouse events. How?

1 view
Skip to first unread message

Ng_Chi_Fai

unread,
Jun 10, 1995, 3:00:00 AM6/10/95
to
Hello all,
I'm think of writing an application with a window that is transparent
to mouse events. Actually, I want the window to process those mouse event
that happen within a region inside the client area of that window. But I
failed to do so.
What should I do to pass all the mouse events that does not happen in
the specific region to the underlying windows? I have read from the 3.1SDK
Help that there is a function WindowFromPoint that return the window
containing the point, but exclude those transparent, hidden, and disabled
windows. However, although I have created my window with WS_EX_TRANSPARENT
style, the function still return the handle of the "transparent" window (I
think the window is transparent because it has the WS_EX_TRANSPARENT style).
Then I can't post the mouse message to the underlying window.
Do I have misunderstood the description of the function?
What is the procedure of making such transparent window?
Besides, how to make the window LOOK transparent, the window with
WS_EX_TRANSPARENT style doesn't look transparent at all. What should I do?
Thanks very much!
--
NG Chi Fai @ Dept. of Electronic Engineering, CUHK
e-mail : cf...@ee.cuhk.hk
URL : http://www.ee.cuhk.hk/cfng/

--
NG Chi Fai @ Dept. of Electronic Engineering, CUHK
e-mail : cf...@ee.cuhk.hk
URL : http://www.ee.cuhk.hk/cfng/

0 new messages