如何在MFC中检测表单更改 [英] How to detect form changes in MFC

查看:57
本文介绍了如何在MFC中检测表单更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个mfc表单,我要检查用户是否更改了任何值,如果需要,请他单击另一个按钮,然后单击刷新",然后单击一个实际按钮(这里是按钮查找).

例如,如果用户在文本框中输入从25到50的更改值,我应该知道值已更改,并且我要打印消息,请单击刷新"按钮!如果用户在刷新之前单击查找".

我该如何存档?
在此先感谢

i have an mfc form in which i want to check if user had change any value & if yes ask him to click on another button say refresh before clicking an actual button (here it is button find.)

for example if user has change value in text box say from 25 to 50 , i should come to know value is changed , & i print message please click on refresh button !, if user clicks on find before refresh.

how i can archive this ?
thanks in advance

推荐答案

控件为您提供了一种执行此操作的机制.例如,您可以实现文本框(即CEdit)ON_EN_CHANGE 消息处理程序 [ ^ ].
The controls provide you a mechanism for doing that. For instance, you may implement the text box (namely CEdit) ON_EN_CHANGE message handler[^].


这篇关于如何在MFC中检测表单更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆