-
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.
Thanks,
Chris
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks