Detect when mouse leaves program window
#7
(08-16-2023, 06:09 PM)Dav Wrote: Yeah I guess we will have to account for the title bar height.  There's an API called GetSystemMetrics that can be used for that kind of information:
https://learn.microsoft.com/en-us/window...temmetrics

I'm getting ready to leave, so I don't have time to whip something up with it.  I'll try to get on it when getting back home.

Here's some VB code to look at to give you an example: http://allapi.mentalis.org/apilist/7D8B6...CE469.html


- Dav
I was just googling and came across that same API call. I'm like a lost puppy when it comes to working with APIs in QB64 however, something I need to learn and then create a tutorial lesson for others with the same issue.
Software and cathedrals are much the same — first we build them, then we pray.
QB64 Tutorial
Reply


Messages In This Thread
RE: Detect when mouse leaves program window - by TerryRitchie - 08-16-2023, 06:24 PM



Users browsing this thread: 5 Guest(s)