• Zhiyi Zhang's avatar
    comctl32/edit: Don't use WM_TIMER to update caret position. · 753ddd3a
    Zhiyi Zhang authored
    An application subclasses edit control and crashes on unexpected WM_TIMER messages. A timer was
    added a long time ago and it was for auto scrolling the view when the cursor is outside of the
    client area. However, with a EDIT_EM_ScrollCaret() call in EDIT_WM_MouseMove(), the view can be
    scrolled to the correct position automatically. So the timer is not necessary at all. This is tested
    manually with a long text in the edit control with notepad on XP, Win7 and Win10. Before this patch,
    the caret will move backwards every 100ms when the clicking the left mouse button on the bottom of
    the text and then dragging the cursor upwards and outside of the client area. After this, the
    behavior is the same as native.
    753ddd3a
Name
Last commit
Last update
dlls Loading commit data...
documentation Loading commit data...
fonts Loading commit data...
include Loading commit data...
libs Loading commit data...
loader Loading commit data...
nls Loading commit data...
po Loading commit data...
programs Loading commit data...
server Loading commit data...
tools Loading commit data...
.editorconfig Loading commit data...
.gitlab-ci.yml Loading commit data...
.mailmap Loading commit data...
ANNOUNCE Loading commit data...
AUTHORS Loading commit data...
COPYING.LIB Loading commit data...
LICENSE Loading commit data...
LICENSE.OLD Loading commit data...
MAINTAINERS Loading commit data...
README Loading commit data...
VERSION Loading commit data...
aclocal.m4 Loading commit data...
configure Loading commit data...
configure.ac Loading commit data...