高手,请教CEditView的用法(100分) 我写的是view/doc的程序,view 继承的是CEditView,不知怎么在视类中写入文字。响应OnDraw()无效。谢谢! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 CEdit& theEdit = GetEditCtrl();theEdit.SetWindowText("This is the testing string!")//view里面的那个edit 将view的client全部覆盖了,所以你看不到你的东西! 消息响应函数里{ CEdit& theEdit = GetEditCtrl(); int length=theEdit.GetWindowTextLength(); theEdit.SetSel(length,length); theEdit.ReplaceSel(yourtext);//CString yourtext;} CEdit& theEdit = GetEditCtrl(); int length=theEdit.GetWindowTextLength(); theEdit.SetSel(length,length); theEdit.ReplaceSel(yourtext);//CString yourtext; EditView中实际上是一个Edit Control,先获得控件CEdit edit = GetEditCtrl();然后再写字edit.SetWindowText(...); 第三次分割窗口设置大小为何没有作用!第二次就有用! 请问vc6.0中如何打开同一文件夹下的html文件(相对路径) 关于item 提取!高手来啊! HtmlView 调用页面上js函数 execScript 请问图片能够随图片控件的大小自动调整大小吗 通过代理上网收发邮件的程序有问题?? 【求助】每隔一段时间读一下硬盘的函数 alarm的问题 在MDI主框架窗口中添加位图 如何编程实现windows单屏幕分屏技术? about滚动条 =====100分求画圆弧算法=====
theEdit.SetWindowText("This is the testing string!")//view里面的那个edit 将view的client全部覆盖了,所以你看不到你的东西!
{
CEdit& theEdit = GetEditCtrl();
int length=theEdit.GetWindowTextLength();
theEdit.SetSel(length,length);
theEdit.ReplaceSel(yourtext);//CString yourtext;
}
int length=theEdit.GetWindowTextLength();
theEdit.SetSel(length,length);
theEdit.ReplaceSel(yourtext);//CString yourtext;
CEdit edit = GetEditCtrl();
然后再写字
edit.SetWindowText(...);