-
August 18th, 2010, 03:01 AM
#1
How to get current current mouse cursor icon?
Hi, I use this code to get mouse position on screen and it's working. I also get cursor width and height. What I need is cursor icon in the moment I call function GetIconInfo. In ii iI have ii.hbmColor and ii.hbmMask. Value of hbmColor is 0x0, hbmMask is 0x2f0517f1. Can I extract mouse cursor from that two pointer and how?
int width, height;
BITMAP bitmap;
ICONINFO ii;
GetIconInfo((HICON)GetCursor(), &ii);
GetObject(ii.hbmMask, sizeof(BITMAP), &bitmap);
width = bitmap.bmWidth;
height = bitmap.bmHeight;
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|