Controls under cursor
How does one go about determining whether the cursor is over one control
or another? I've seen some simple methods, but I'd like to be able to have
this work even when controls overlap. I've done something simple by getting
the cursor position and then comparing it to a control's rectangle, but if
another control is covering part of the rectangle, my code is not sufficient.
BTW, _MouseMove is no good for me here, because I'm making a control and
I want it to know whether the cursor is over it all by itself. Also I've
heard that Get/Release capture can produce strange side-effects. Any help
would be much appreciated.
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center