How to find the TRUE cursor size

T

Tom P.

I'm trying to display a message next to the mouse cursor but I can't
find the actual cursor size. All I can find is the size of the cursor
sprite.

Cursor.Size and Cursor.Current.Size are, apparently, the size of the
cursor sprite because they are about twice as big as the cursor arrow.
I'm looking for the arrow width + 2.

If anybody has bumpped into this before please let me know.

Thanks,
Tom P.
 
J

Jeff Johnson

I'm trying to display a message next to the mouse cursor but I can't
find the actual cursor size. All I can find is the size of the cursor
sprite.

Cursor.Size and Cursor.Current.Size are, apparently, the size of the
cursor sprite because they are about twice as big as the cursor arrow.
I'm looking for the arrow width + 2.

If anybody has bumpped into this before please let me know.

Hmmm, yes, I've "bumped into this before," and I have to wonder if you were
the person I bumped into!

Specifically, the last time someone asked this question he was hoping that
Microsoft provided some sort of API function to determine the "visible"
portion of a cursor. In other words, the default mouse pointer image fits in
a 16x16 bounding box, but the cursor itself is 32x32; it just contains a
large transparent area. He wanted a function that would determine that
bounding box. It was pretty much decided that No, there is no built-in way
to do this and the only solution is to load the cursor into memory and scan
its bitmap. The original poster wasn't too happy with that answer, but I
don't recall any other solution being presented.
 
T

Tom P.

Hmmm, yes, I've "bumped into this before," and I have to wonder if you were
the person I bumped into!

Specifically, the last time someone asked this question he was hoping that
Microsoft provided some sort of API function to determine the "visible"
portion of a cursor. In other words, the default mouse pointer image fitsin
a 16x16 bounding box, but the cursor itself is 32x32; it just contains a
large transparent area. He wanted a function that would determine that
bounding box. It was pretty much decided that No, there is no built-in way
to do this and the only solution is to load the cursor into memory and scan
its bitmap. The original poster wasn't too happy with that answer, but I
don't recall any other solution being presented.

It wasn't me, but thanks.

Tom P.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How to change cursor. 10
Problems Changing Mouse Cursor Type 2
What makes cursor re-size? 1
Changed cursor size 0
wait cursor 5
cursor for powerpoint 3
Windows Vista Cursor's sticky double arrow 12
how to put a name as a cursor. 1

Top