|
-
April 28th, 1999, 05:49 PM
#1
LoadCursor, SetCursor or what?
How do I load and keep a NULL cursor? I'm using VC++6 and want to implement this for a non-scrnsave.lib screen saver. I can't seem to figure out how MS did it with the SAVER example.
Any ideas are greatly appreciated.
Thank you,
Marc
-
April 28th, 1999, 06:58 PM
#2
Re: LoadCursor, SetCursor or what?
Try this:
SetClassLong(m_hWnd, GCL_HCURSOR, NULL);
It works in my window. Hope it works in your case too.
-
April 29th, 1999, 10:03 AM
#3
Re: LoadCursor, SetCursor or what?
Thank you for the reply...this doesn't seem to work for me. Maybe I am using this in the wrong area of my program. Right now I have this under the InitInstance() func...is this wrong?
Thanks again,
Marc
-
April 30th, 1999, 01:28 AM
#4
Re: LoadCursor, SetCursor or what?
You can load whatever cursor to the window class you register in th InitInstance(). But you need to SetClassLong(m_hWnd, GCL_HCURSOR, NULL) in the OnCreate() handler of the window after the window has been created.
Good luck
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|