BCGSuite for MFC
int CBCGPEditCtrl::GetLineCount ( ) const
inline

Returns the number of lines in the edit control.

Returns
The number of lines.

Call this function to retrieve the number of lines in the edit control. This value corresponds to the number of '\n' symbols in the text.