This is a migrated thread and some comments may be shown as answers.

the mouse position drift in high DPI with the radwindow move!

0 Answers 59 Views
Window
This is a migrated thread and some comments may be shown as answers.
wu
Top achievements
Rank 1
Veteran
wu asked on 12 Oct 2018, 07:30 AM

I feedback the question,but it is not still resolve,so when i got the old source code,

after i deal with the gridview column resize,i found the question code:

in ChromelessWindowHelper.cs file:

modify the function HandleMoving(IntPtr hwnd, IntPtr wParam, IntPtr lParam, out bool handled):

just none the following code:

//NativeMethods.CopyToRECT(position, ref currentPosition);

so it is OK! i think when coordinate transform from int type to double type and then from double type to int type,

at last,there is the offset.

 

No answers yet. Maybe you can help?

Tags
Window
Asked by
wu
Top achievements
Rank 1
Veteran
Share this question
or