On Suday the 11th of February, 2007 -after 3 and a half years on InvisionFree, we have moved! This old board remains as a read only archive of years past, and registration has been disabled here. All new and current members should register at http://www.cpplc.net/forum .
| · Portal |
Help
Search
Members
Calendar
|
| Welcome Guest ( Log In | Register ) | Resend Validation Email |
![]() ![]() ![]() |
| Ravotus |
Posted: Jan 29 2007, 03:59 AM
|
|
Programming Addict Group: Super Moderator Posts: 757 Member No.: 374 Joined: 13-December 03 |
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.
-------------------- |
| C-Man |
Posted: Jan 29 2007, 09:42 AM
|
|
Lazy bum Group: Super Moderator Posts: 4,563 Member No.: 609 Joined: 29-February 04 |
i'm guesing a HCURSOR should have the same properties as HBITMAP
why not try and blit it ? -------------------- |
| adeyblue |
Posted: Jan 29 2007, 11:25 AM
|
|
The Colin Mochrie of the Windows World Group: Members Posts: 28 Member No.: 2,013 Joined: 30-August 06 |
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.) -------------------- I don't write messy code, you're just not reading it properly
AudioPlayer - FileSplitter - Windows ACL and ACE Utilities |
| Ravotus |
Posted: Jan 30 2007, 03:56 AM
|
|
Programming Addict Group: Super Moderator Posts: 757 Member No.: 374 Joined: 13-December 03 |
That worked! Thanks muchly!
-------------------- |
![]() |
![]() ![]() ![]() |