BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

loading a custom cursor file

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics)
View previous topic :: View next topic  
Author Message
Bono
Guest





PostPosted: Mon Mar 06, 2006 12:03 pm    Post subject: loading a custom cursor file Reply with quote



Hi there!!
I need to change mouse cursor with a custom "file.cur".

Can you help me?

Thanks a lot!!
Andrea
Back to top
Thorsten Kettner
Guest





PostPosted: Mon Mar 06, 2006 3:03 pm    Post subject: Re: loading a custom cursor file Reply with quote



"Bono" <bono (AT) ingv (DOT) it> wrote:
Quote:
Hi there!!
I need to change mouse cursor with a custom "file.cur".

// Load the cursor
HCURSOR hCursor = ::LoadCursorFromFile ("file.cur");
// Use any positive number as a cursor id
const int crMyCursor = 1;
// add cursor to global cursor list
Screen->Cursors[crMyCursor] = hCursor;
// set cursor using the id
Screen->Cursor = crMyCursor;
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Graphics) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.