BCGSoft Professional Editor for MFC
int CBCGPEditCtrl::GetFirstVisibleLine ( ) const

Determines the topmost visible line.

Returns
Zero-based index of the uppermost visible line in this CBCGPEditCtrl object.

Call this function to determine the topmost visible line in this CBCGPEditCtrl object.