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

    why mouse cursor always flash?

    when I change my mouse cursor,cursor always flash,why?



  2. #2
    Guest

    Re: why mouse cursor always flash?

    If you're using a CView derived class you can do like this to prevent flickering!

    1: Set the cursor

    ::SetCursor(m_Cursor);


    2: Tell the system not to change back the cursor

    CYourView::OnSetCursor(....)
    {
    return TRUE;
    }

    This prevent the system to set the normal cursor!

    If you don't have a view, you can set the cursor by theese few lines

    ::SetClassLong(this->GetSafeHwnd(),GCL_HCURSOR,cursor);
    ::SetCursor(cursor);


    /Markus



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