Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
int GetFirstVisibleLine( ) const;
Return Value
Zero-based index of the uppermost visible line in this CRichEditCtrl object.
Remarks
Call this function to determine the topmost visible line in this CRichEditCtrl object.
For more information, see in the Win32 documentation.
Example
// The pointer to my rich edit control.
extern CRichEditCtrl* pmyRichEditCtrl;
int nFirstVisible = pmyRichEditCtrl->GetFirstVisibleLine();
// Scroll the rich edit control so that the first visible line
// is the first line of text.
if (nFirstVisible > 0)
{
pmyRichEditCtrl->LineScroll(-nFirstVisible, 0);
}
CRichEditCtrl Overview | Class Members | Hierarchy Chart
See Also CRichEditCtrl::GetLine, CRichEditCtrl::GetLineCount