<div dir="ltr">On Sat, Oct 4, 2008 at 1:21 AM, Dylan Smith <span dir="ltr">&lt;<a href="mailto:dylan.ah.smith@gmail.com">dylan.ah.smith@gmail.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Implemented the code to check for this condition in the function that<br>
handles WM_SETCURSOR. &nbsp;For each scrollbar I checked for visibility and<br>
checked the MessagePos to see if the mouse was over the scrollbar.<br>
---<br>
&nbsp;dlls/riched20/editor.c | &nbsp; 19 +++++++++++++++++++<br>
&nbsp;1 files changed, 19 insertions(+), 0 deletions(-)<br>
</blockquote></div><br>This fix works alright in Wine, but I found out that it wasn&#39;t working when I cross-compiled riched20.dll and wordpad and then ran it on Windows XP.&nbsp; It seems as if GetScrollBarInfo was returning a SCROLLBARINFO struct with an rcScrollBar RECT in client coordinates in Wine and in screen coordinates in Windows XP.<br>
<br>This underlying problem should be fixed first before fixing richedit.&nbsp; Later this patch would be modified to move the call to ScreenToClient after the check to see if the position is within the scrollbars, which I found fixes the problem on Windows.<br>
</div>