View Full Version: Get an image of a cursor?

C++ Learning Community > win32 api C++ programming > Get an image of a cursor?


Title: Get an image of a cursor?
Description: Strange question...


Ravotus - January 29, 2007 03:59 AM (GMT)
I'm trying to get the cursor into an image so I can draw it in multiple locations. So far I have only seen HCURSOR as the handle for a cursor. Is there a way to draw it onto something or somehow make a bitmap out of a cursor? I know it's a weird question. :P

C-Man - January 29, 2007 09:42 AM (GMT)
i'm guesing a HCURSOR should have the same properties as HBITMAP
why not try and blit it ?

adeyblue - January 29, 2007 11:25 AM (GMT)
You're looking for misnamed DrawIconEx which takes the handle of an icon or cursor and draws into a DC.

(http://msdn2.microsoft.com/en-us/library/ms648065.aspx). (The linkify button ain't working.)

Ravotus - January 30, 2007 03:56 AM (GMT)
That worked! Thanks muchly! :lol:




Hosted for free by InvisionFree