November 5th, 2009, 09:22 AM
Scrolling to textbox bottom without focus ?
I have a textbox control that functions as a log window for my application, and I've successfully made it scroll to the bottom automatically.
Unfortunately the function used gives the window focus (While I don't want that) I've tried using selStart with the textbox length, and I tried using the following API call:
Is there any other API call or anything that makes it scroll to the bottom without giving focus to it ?
SendMessage txtLog.hWnd, WMVSCROLL, SBBOTTOM, 0
Edit: Just changing the text of the textbox gives it focus apperently, is there any way to prevent this ?
Thanks for your time, Xeross
Click Here to Expand Forum to Full Width