VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Accurate MouseOver function

by HardStream (5 Submissions)
Category: Coding Standards
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

This is probably the most accurate MouseOver function that doesn't need a handle (hWnd) input. It gets the rectangle of the control on the screen in pixels by looking to the position of the parent form and the position of the control in the form. The code also checks if the form has got a menu bar. Anywayz, just check out the code :D

Inputs
Obj As Object
Code Returns
True or False
Side Effects
Works most accurate with border style 2. I'm currently working on support for all border styles.
API Declarations
GetSystemMetrics
GetWindowRect
GetMenu
GetCursorPos

Rate Accurate MouseOver function

Download Accurate MouseOver function

Download Accurate MouseOver function (17 KB)

Accurate MouseOver function Comments

No comments have been posted about Accurate MouseOver function. Why not be the first to post a comment about Accurate MouseOver function.

Post your comment

Subject:
Message:
0/1000 characters