📄 subject_48852.htm
字号:
<p>
序号:48852 发表者:黑兔子 发表日期:2003-08-04 13:23:10
<br>主题:怎么使得窗口edit的文字随另外一个edit 变化
<br>内容:就是说我要作一个象vc 新建工程那样的对话框一样的东西,<BR>我怎么让路径后面自动的随工程名变化。<BR>————————————————<BR>| 工程名 ___________ |<BR>| 路径______________ Browse |<BR>|______________________________|<BR>不知道我说清楚了没有, 谢谢!
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:木一 回复日期:2003-08-04 13:43:01
<br>内容:实现Edit的 EN_CHANGE消息就可以了。<BR><BR>void CEditTechDlg::OnChangeEdit1() <BR>{<BR> // TODO: If this is a RICHEDIT control, the control will not<BR> // function and call CRichEditCtrl().SetEventMask()<BR> // with the ENM_CHANGE flag ORed into the mask.<BR> <BR> // TODO: Add your control notification handler code here<BR><BR> CString strContent;<BR> this->GetDlgItemText (IDC_EDIT1,strContent);<BR> this->SetDlgItemText (IDC_EDIT2,strContent);<BR> <BR>}
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:黑兔子 回复日期:2003-08-04 14:36:25
<br>内容:解决,谢谢!<BR>问一下,EN_UPDATE与EN_CHANGE有什么区别!
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:木一 回复日期:2003-08-05 00:24:20
<br>内容:Update是更改的时候响应 <BR>Change则是化生变化的时候才响应
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -