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 DeclarationsGetSystemMetrics
GetWindowRect
GetMenu
GetCursorPos