m_deit.setsel(int x,int y)的功能是什么?
m_deit.setsel(int x,int y)的功能是什么?
设置编辑框文本的复选信息,函数原形是这样的:
void SetSel( int nStartChar, int nEndChar, BOOL bNoScroll = FALSE );
这是函数的介绍(MSDN):
bNoScroll
Indicates whether the caret should be scrolled into view. If FALSE, the caret is scrolled into view. If TRUE, the caret is not scrolled into view.
nStartChar
Specifies the starting position. If nStartChar is 0 and nEndChar is –1, all the text in the edit control is selected. If nStartChar is –1, any current selection is removed.
nEndChar
Specifies the ending position.
Remarks
Call this function to select a range of characters in an edit control.
[此贴子已经被作者于2006-11-6 12:14:07编辑过]