CRichEditCtrl::GetFirstVisibleLine
확인 표시 된 맨 위에 있는 줄이 CRichEditCtrl 개체입니다.
int GetFirstVisibleLine( ) const;
반환 값
인덱스의 맨 위 줄이 CRichEditCtrl 개체입니다.
설명
자세한 내용은 EM_GETFIRSTVISIBLELINE 에 있는 Windows SDK.
예제
int nFirstVisible = m_myRichEditCtrl.GetFirstVisibleLine();
// Scroll the rich edit control so that the first visible line
// is the first line of text.
if (nFirstVisible > 0)
{
m_myRichEditCtrl.LineScroll(-nFirstVisible, 0);
}
요구 사항
헤더: afxcmn.h