mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
richedit: Use 32-bit rather than 16-bit trackbar value for scrolling.
This commit is contained in:
parent
ba01d15b1f
commit
f361910514
1 changed files with 11 additions and 1 deletions
|
@ -4004,9 +4004,19 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
|
|||
break;
|
||||
case SB_THUMBTRACK:
|
||||
case SB_THUMBPOSITION:
|
||||
ME_ScrollAbs(editor,HIWORD(wParam));
|
||||
{
|
||||
SCROLLINFO sbi;
|
||||
sbi.cbSize = sizeof(sbi);
|
||||
sbi.fMask = SIF_TRACKPOS;
|
||||
/* Try to get 32-bit track position value. */
|
||||
if (!GetScrollInfo(editor->hWnd, SB_VERT, &sbi))
|
||||
/* GetScrollInfo failed, settle for 16-bit value in wParam. */
|
||||
sbi.nTrackPos = HIWORD(wParam);
|
||||
|
||||
ME_ScrollAbs(editor, sbi.nTrackPos);
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (msg == EM_SCROLL)
|
||||
return 0x00010000 | (((ME_GetYScrollPos(editor) - origNPos)/lineHeight) & 0xffff);
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue