void SetSel(
int nStartChar,
int nEndChar,
BOOL bNoScroll = FALSE
);
nStartChar //参数说明不是 -1开始是选择当前删除吗????
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.
Example
// The pointer to my edit.
extern CEdit* pmyEdit;
// Delete all of the text.
pmyEdit->SetSel(0, -1);
pmyEdit->Clear();
...全文
98117打赏收藏
CEdit//SetSel()函数求解。。。
void SetSel( int nStartChar, int nEndChar, BOOL bNoScroll = FALSE ); nStartChar //参数说明不是 -1开始是选择当前删除吗???? 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