CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 1999
    Location
    Nottingham, UK
    Posts
    35

    way to detect when the mouse is being move outside of a view

    I am working on an app which draws its own supplementary crosshair cursor and I need to know when the mouse has been moved or is about to moved outside the view, so I can delete the crosshair.


  2. #2
    Join Date
    Apr 1999
    Posts
    12

    Re: way to detect when the mouse is being move outside of a view

    use SetCapture to ensure that you receive mouse messages even when the cursor is outside the window. You can then test all mouse_move positions to see if still inside the view. If not then release capture and erase crosshairs.


  3. #3
    Guest

    Re: way to detect when the mouse is being move outside of a view

    There is some message called WM_MOUSELEAVE. It's available in Win95.
    See whether it helps u or not.


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