VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Accurate MouseOver function

HardStream  (5 Submissions)   Coding Standards   Intermediate   Wed 3rd February 2021

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

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 (4(4 Vote))

Download Accurate MouseOver function

Accurate MouseOver function Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters