• Dylan Smith's avatar
    winhlp32: Prevent cursor flicker on mouse moves over richedit control. · a36b408f
    Dylan Smith authored
    Previously the cursor was being set by winhlp32 on WM_MOUSEMOVE, then
    the richedit control would change it again on WM_SETCURSOR.  Since the
    cursor set in both of these places was different, the cursor would
    flicker from being frequently changed.
    
    The reason winhlp32 is setting the cursor, rather than letting the
    richedit control set the cursor, is that winhlp32 needs the hand cursor
    to be shown over a link.  My first instinct was to just add the CFE_LINK
    effect to the link characters, however this also forced a colour for the
    link that was inconsistent with native winhlp32.  Native winhlp32
    doesn't seem to load any richedit dll, so this doesn't imply that there
    is an undocumented way of changing the colour of characters with
    CFE_LINK.
    
    This patch has winhlp32 override the WNDPROC for the richedit control to
    handle the WM_SETCURSOR.  It simply sets the cursor to the hand if the
    cursor is over the link, otherwise it just calls the original richedit
    window proc.
    a36b408f
Name
Last commit
Last update
..
Bg.rc Loading commit data...
Cs.rc Loading commit data...
Da.rc Loading commit data...
De.rc Loading commit data...
En.rc Loading commit data...
Eo.rc Loading commit data...
Es.rc Loading commit data...
Fi.rc Loading commit data...
Fr.rc Loading commit data...
Hu.rc Loading commit data...
It.rc Loading commit data...
Ja.rc Loading commit data...
Ko.rc Loading commit data...
Makefile.in Loading commit data...
Nl.rc Loading commit data...
No.rc Loading commit data...
Pl.rc Loading commit data...
Pt.rc Loading commit data...
Rm.rc Loading commit data...
Ru.rc Loading commit data...
Si.rc Loading commit data...
Sk.rc Loading commit data...
Sv.rc Loading commit data...
Tr.rc Loading commit data...
Wa.rc Loading commit data...
Zh.rc Loading commit data...
callback.c Loading commit data...
hlpfile.c Loading commit data...
hlpfile.h Loading commit data...
macro.c Loading commit data...
macro.h Loading commit data...
macro.lex.l Loading commit data...
rsrc.rc Loading commit data...
string.c Loading commit data...
winhelp.c Loading commit data...
winhelp.h Loading commit data...
winhelp.ico Loading commit data...
winhelp.svg Loading commit data...
winhelp_res.h Loading commit data...