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 .


Create a free forum in seconds.
InvisionFree - Free Forum Hosting
Welcome to C++ Learning Community. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free.


Join our community!


If you're already a member please log in to your account to access all of our features:

Name:   Password:

Please help out
Google

  Reply to this topicStart new topicStart Poll

> Get an image of a cursor?, Strange question...
Ravotus
Posted: Jan 29 2007, 03:59 AM
Quote Post


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. tongue.gif


--------------------
Formerly known as Nintendofreak88. My Web Site

user posted image
user posted image
user posted image
PMEmail PosterUsers Website
Top
C-Man
Posted: Jan 29 2007, 09:42 AM
Quote Post


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 ?


--------------------
user posted image
PMEmail PosterUsers Website MSN
Top
adeyblue
Posted: Jan 29 2007, 11:25 AM
Quote Post


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
PMEmail PosterUsers Website
Top
Ravotus
Posted: Jan 30 2007, 03:56 AM
Quote Post


Programming Addict


Group: Super Moderator
Posts: 757
Member No.: 374
Joined: 13-December 03



That worked! Thanks muchly! laugh.gif


--------------------
Formerly known as Nintendofreak88. My Web Site

user posted image
user posted image
user posted image
PMEmail PosterUsers Website
Top
« Next Oldest | win32 api C++ programming | Next Newest »
DealsFor.me - The best sales, coupons, and discounts for you

Topic Options Reply to this topicStart new topicStart Poll


Skin selector developed by XJONX. Skins created by various members of the IF Skin Zone and InvisionFree Skinning

Please help out
Hosted for free by InvisionFree* (Terms of Use: Updated 2/10/2010) | Powered by Invision Power Board v1.3 Final © 2003 IPS, Inc.
Page creation time: 0.0914 seconds | Archive