📄 subject_41405.htm
字号:
<p>
序号:41405 发表者:小缪 发表日期:2003-05-26 21:59:01
<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-05-27 00:05:06
<br>内容:处理编辑框的EN_UPDATE事件(Events),在其中获取对话框的值,然后修改另一个编辑框的值,再刷新对话框即可。<BR><BR>void CXXXX::OnUpdate***() <BR>{<BR>// TODO: If this is a RICHEDIT control, the control will not<BR>// send this notification unless you override the CPropertyPage::OnInitDialog()<BR>// function to send the EM_SETEVENTMASK message to the control<BR>// with the ENM_UPDATE flag ORed into the lParam mask.<BR> <BR>// TODO: Add your control notification handler code here<BR><BR> UpdateData(TRUE);//取回数据到成员变量<BR><BR> m_strB=m_strA;//仅仅示列<BR><BR> UpdateData(FALSE);//将数据返回到对话框<BR>}
<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 + -