mahfudz
asked on
auto scrolling down to the end in edit box
hi
i have an edit box control....which acts like some status box.....constantly filled with text
problem is the scroll bar does not automatically move, anyone knows the solution? thanks!
i have an edit box control....which acts like some status box.....constantly filled with text
problem is the scroll bar does not automatically move, anyone knows the solution? thanks!
> pEdit->LineScroll(pEdit->G etLineCoun t());
This code will only ever show the last line as the top line in the edit box.
You can do something like this to show the last 10 lines:
int nFirstVisible = pmyEdit->GetFirstVisibleLi ne();
pmyEdit->LineScroll(pmyEdi t->GetLine Count()-nF irstVisibl e-10, 0);
This code will only ever show the last line as the top line in the edit box.
You can do something like this to show the last 10 lines:
int nFirstVisible = pmyEdit->GetFirstVisibleLi
pmyEdit->LineScroll(pmyEdi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
For example if you have a pointer to an your edit box called pEdit try calling
pEdit->LineScroll(pEdit->G
whenever you add a new status message to it