View previous topic :: View next topic |
Author |
Message |
HateWork
Joined: 20 Oct 2007 Posts: 13
|
Posted: Mon Feb 25, 2008 10:11 am Post subject: Transparent control |
|
|
Hi,
Is it possible to create a transparent control? i mean, like a Rect but with mouse events that can be located on front of other controls (a picturebox for example) without painting on top of them.
I want to do this because i want to add mouse hover events to specific areas of an image. |
|
Back to top |
|
|
Chris Miller
Joined: 27 Mar 2004 Posts: 514 Location: The Internet
|
Posted: Tue Mar 04, 2008 3:30 pm Post subject: Re: Transparent control |
|
|
There's WS_EX_TRANSPARENT but it also causes it to skip mouse messages. How about just keeping a set of Rect`s and see if the mouse is in the bounds.. |
|
Back to top |
|
|
|