In resource file:


#define IDC_1 50
IDC_1 CURSOR DISCARDABLE "hand.cur"
____________________________________
.const

IDC_1 equ 50

____________________________________
In WinMain:

invoke LoadCursor,NULL,IDC_1
mov wc.hCursor,eax



I'm trying to get my window to display a cursor of my choice but what happens is the "working in background" cursor appears and will remain untill i move it to the caption bar or menu at which time it changes to the default cursor. My cursor "hand.cur" does not appear at all. If anybody can see something wrong or has a suggestion.....

thanx a gig :cool:
Posted on 2001-08-15 17:16:45 by titan
Try the following:

invoke LoadCursor,hInstance,IDC_1

This shoud load the cursor from your resorce.
Posted on 2001-08-15 18:30:22 by KetilO
Just to satisfy my own curiosity kinda... but trying to load it with NULL instead of hInstance... wouldn't that make it load from the OS and not your own resources?...
Posted on 2001-08-16 01:53:04 by NervGaz

Just to satisfy my own curiosity kinda... but trying to load it with NULL instead of hInstance... wouldn't that make it load from the OS and not your own resources?...

Yes thats true. As far as I recall the useful ID's is in the range >32000

KetilO
Posted on 2001-08-16 03:12:58 by KetilO