CEdit::GetFirstVisibleLine
intGetFirstVisibleLine()const;
Return Value
The zero-based index of the topmost visible line. For single-line edit controls, the return value is 0.
Remarks
Call this function to determine the topmost visible line in an edit control.
For more information, see in the Win32 documentation.
Example
// The pointer to my edit.
extern CEdit* pmyEdit;
int nFirstVisible = pmyEdit->GetFirstVisibleLine();
// Scroll the edit control so that the first visible line
// is the first line of text.
if (nFirstVisible > 0)
{
pmyEdit->LineScroll(-nFirstVisible, 0);
}
CEdit Overview | Class Members | Hierarchy Chart
See Also CEdit::GetLine