RICHEDIT控件的选中是什么怎么回事?
时间:2011-12-07
来源:互联网
我的调用SetParaFormat()设置,但是我根本就没有选中任何一行,但是在里面显示的字体还是有效果呢?
难道默认的是选中全部?
难道默认的是选中全部?
作者: qweewqpkn 发布时间: 2011-12-07
SendMessage(EM_SETSEL,-1, -1);
与SetSel(-1,-1);
效果都是一样吗? 都是让richedit取消全选?
与SetSel(-1,-1);
效果都是一样吗? 都是让richedit取消全选?
作者: qweewqpkn 发布时间: 2011-12-07
SetParaFormat应该是设置段落格式,所以跟你选没选中无关
取消全选的话,去查查SetSel的2个参数是干嘛的
取消全选的话,去查查SetSel的2个参数是干嘛的
作者: Me_Not_You 发布时间: 2011-12-08
void SetSel( long nStartChar, long nEndChar );
nStartChar
Zero-based index of the first character for the selection.//首个字符的索引值
nEndChar
Zero-based index of the last character for the selection.//末尾字符的索引值
To select all the text in this CRichEditCtrl object, call SetSel with a start index of 0 and an end index of – 1//全选就是SetSel(0,-1);
nStartChar
Zero-based index of the first character for the selection.//首个字符的索引值
nEndChar
Zero-based index of the last character for the selection.//末尾字符的索引值
To select all the text in this CRichEditCtrl object, call SetSel with a start index of 0 and an end index of – 1//全选就是SetSel(0,-1);
作者: Me_Not_You 发布时间: 2011-12-08
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28