I'd like to scroll to the bottom of an Edit automatically whenever a line is added, so I wrote this:


SendMessage(hWnd(), LOWORD(WM_VSCROLL), SB_BOTTOM, 0);




hWnd() returns the hwnd of the edit.

This worked just fine under Win2k but it doesn't work at all under Win98. What am I doing wrong?

---
Regards,
Vitaly Belman
ICQ: 1912453