BCGControlBar Pro for MFC
virtual BOOL CBCGPEditCtrl::GoToLine ( int  nLineNum,
BOOL  bExpandBlock = TRUE,
BOOL  bRedrawOnScroll = TRUE 

Scrolls edit control to specified line.

Nonzero if the edit control was scrolled to specified line.

Outline blocks can be optionally expanded if the required line is hidden.

nLineNumSpecifies the zero-based line number.
bExpandBlockIf TRUE and the required line is located within an outline block, the outline block will be expanded.
bRedrawOnScrollIf TRUE, the edit control will be redrawn after scrolling.