Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Can't set cursor(No Errors)

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 3rd Jun 2009 20:21 Edited at: 3rd Jun 2009 20:29
Here's the code:



All calls to GetLastError() return 0, but so does the call to SetClassLong and that is supposed to return the old cursor handle.

and the cursor doesn't change. any help?


Edit:

I changed it a little and added a call to GetClassLong() to see if it changed, it did change but the cursor isn't changing. i also tried using ShowCursor() to see if you had to "RePaint" the cursor like you do with windows. but nope not working.

New Site! Check it out \/
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 3rd Jun 2009 21:02
Try:



Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 3rd Jun 2009 23:29
Oh ok sweet thanks, The description on msdn didn't sound like that was what i needed.

Have any idea why the SetClassLong() function didn't work? it should have :/ lol

Unless dbc is using SetCursor. that would explain why SetClassLong() returns zero, because to use SetCursor() you have to have HCURSOR set to zero(From the window class).

New Site! Check it out \/
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 4th Jun 2009 01:20
Quote: "Unless dbc is using SetCursor. that would explain why SetClassLong() returns zero, because to use SetCursor() you have to have HCURSOR set to zero(From the window class)."

I guess. I don't know - just use the simple approach until it doesn't work, then try something else.

Enjoy your day.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 4th Jun 2009 02:10
Good point. lol

New Site! Check it out \/

Login to post a reply

Server time is: 2025-06-08 09:08:11
Your offset time is: 2025-06-08 09:08:11