| View previous topic :: View next topic |
| Author |
Message |
Bono Guest
|
Posted: Mon Mar 06, 2006 12:03 pm Post subject: loading a custom cursor file |
|
|
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
|
Posted: Mon Mar 06, 2006 3:03 pm Post subject: Re: loading a custom cursor file |
|
|
"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 |
|
 |
|