|
-
November 18th, 2005, 03:18 AM
#1
A stupid one HCURSOR --> HICON and HICON --> HCURSOR
Hi,
I know there are some ways to pass from one to another and experienced some.
But please can you indicate the best way to transform a HCURSOR to a HICON and vice versa.
Thanks a lot
-
November 18th, 2005, 03:31 AM
#2
Re: A stupid one HCURSOR --> HICON and HICON --> HCURSOR
 Originally Posted by F.Mayis
Hi,
I know there are some ways to pass from one to another and experienced some.
But please can you indicate the best way to transform a HCURSOR to a HICON and vice versa.
Thanks a lot
you can use ::CreateIcon(..) to create an icon from the raw bits you can get from HCURSOR using the ::GetIconInfo(..).
look at this thread for usage of ::GetIconInfo(..) and ::CreateIcon(..)
just pass the ::GetIconInfo(..) the HCURSOR and you will get its data.
Cheers
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
|