Click to See Complete Forum and Search --> : LoadCursor, SetCursor or what?
Marc Howe
April 28th, 1999, 05:49 PM
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
Anthony Zhang
April 28th, 1999, 06:58 PM
Try this:
SetClassLong(m_hWnd, GCL_HCURSOR, NULL);
It works in my window. Hope it works in your case too.
Marc Howe
April 29th, 1999, 10:03 AM
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
Anthony Zhang
April 30th, 1999, 01:28 AM
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
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.