[Mono-bugs] [Bug 538645] New: Control.OnMouseWheel reports screen coordinates, not client coordinates.
    bugzilla_noreply at novell.com 
    bugzilla_noreply at novell.com
       
    Fri Sep 11 16:01:10 EDT 2009
    
    
  
http://bugzilla.novell.com/show_bug.cgi?id=538645
           Summary: Control.OnMouseWheel reports screen coordinates, not
                    client coordinates.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: All
        OS/Version: Windows
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: landon.rabern at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US)
AppleWebKit/530.5 (KHTML, like Gecko) Chrome/2.0.172.43 Safari/530.5
It reports client coordinates in .NET.
The problem is that oddly the coordinates in the LPARAM of a WM_MOUSEWHEEL
notification are screen coordinates but they are client coordinates on
WM_LBUTTON and others. See
http://msdn.microsoft.com/en-us/library/ms645608(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms645617(VS.85).aspx
Needs a PointToClient in WmMouseWheel.
Reproducible: Always
-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
    
    
More information about the mono-bugs
mailing list