richedit: Use ME_EnsureVisible to implement EM_SCROLLCARET.
authorDylan Smith <dylan.ah.smith@gmail.com>
Mon, 15 Dec 2008 09:31:43 +0000 (04:31 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 15 Dec 2008 12:15:56 +0000 (13:15 +0100)
commit6901e0cec7331c768af6b8c11509067b58372a01
tree4ef5c20b93ef5f5c830dcd983bcbeb2c69d27f0a
parent098f2f231dd058a109aefb7d7ed898f85a37760d
richedit: Use ME_EnsureVisible to implement EM_SCROLLCARET.

The code for the ME_EnsureVisible function does exactly what
EM_SCROLLCARET does, yet this code is duplicated in order to handle
this message.  It is simpler to just use the existing function to
implement the message, and avoid internally sending the EM_SCROLLCARET
when this function is available.
dlls/riched20/caret.c
dlls/riched20/editor.c