BCGSuite for MFC
BOOL CBCGPEditCtrl::ScrollEnd ( int  fnBar,
BOOL  bRedrawOnScroll 
)

Scrolls the edit control to the end of text or to the most right position of the horizontal scroll bar.

Returns
Nonzero if the function succeeds; otherwise 0.
Parameters
fnBarThe scroll bar ID (SB_VERT or SB_HORZ)
bRedrawOnScrollSpecifies whether the edit control should be redrawn if scrolling has occured as a result of this operation.