cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Mouse pos and bitmaps
Mouse pos and bitmaps
Jun 16, 2016 at 9:46pm UTC
Fractal Cat
(34)
Hi,
How can I tell if the cursor is inside a screen bitmap ?
Thx
FC.
Jun 17, 2016 at 7:56am UTC
Thomas1965
(4571)
First you need to get the cursor position and the rectangle of the bitmap.
Then you can use the PtInRect function.
https://msdn.microsoft.com/de-de/library/windows/desktop/dd162882(v=vs.85).aspx
Topic archived. No new replies allowed.