How to find the TRUE cursor size

  • Thread starter Thread starter Tom P.
  • Start date Start date
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.
 
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.
 
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.
 
Back
Top