CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 1999
    Posts
    34

    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


  2. #2
    Join Date
    Apr 1999
    Posts
    17

    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.


  3. #3
    Join Date
    May 1999
    Posts
    34

    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


  4. #4
    Join Date
    Apr 1999
    Posts
    17

    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
  •  





Click Here to Expand Forum to Full Width

Featured