CEdit::LineScroll

MFC 类库参考
CEdit::LineScroll 

翻译:www.cookbus.com 宇行

 

调用此函数以滚动多行编辑控件的文字。
void LineScroll(
int nLines,
int nChars = 0
);

参数

nLines

要垂直滚当到指定的行数。

nChars
指定水平滚动的一些性质立场。这个只允许编辑控件的风格是 ES_RIGHT 或者 ES_CENTER

只有通过多行编辑控件才能处理这个成员函数。

The edit control does not scroll vertically past the last line of text in the edit control. If the current line plus the number of lines specified by nLines exceeds the total number of lines in the edit control, the value is adjusted so that the last line of the edit control is scrolled to the top of the edit-control window.

LineScroll can be used to scroll horizontally past the last character of any line.

For more information, see EM_LINESCROLL in the Platform SDK.

See the example for CEdit::GetFirstVisibleLine.

Reference

CEdit Class
Hierarchy Chart
CEdit::LineIndex

Other Resources

CEdit Members

Tags: 翻译, win32

« 上一篇 | 下一篇 »

Trackbacks

2条记录访客评论

您好
想和你博客做个链接不知道行不?
已经做好了你的连接哦 ^_^
博客名称: 凡客
博客地址: http://www.f9011.cn/

Post by 凡客 on 2009, April 8, 9:48 AM 引用此文发表评论 #1

很荣幸

Post by pintime on 2009, April 8, 8:58 PM 引用此文发表评论 #2


发表评论

评论内容 (必填):