如何做(窗体验证)验证vc ++ MFC中的对话框值? [英] how to do (form validation) validate dialog box values in vc++ MFC?
本文介绍了如何做(窗体验证)验证vc ++ MFC中的对话框值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何验证对话框,由vc ++ MFC中的用户名字段,密码字段组成?
任何人都可以提供有关代码或任何引用的帮助吗?
how to validate dialog box ,consisting of username field,password field in vc++ MFC?
can anybody help with the code or any reference?
推荐答案
要添加到Richard的答案中.
UpdateData会将数据设置为往返于UI的数据或来自内部变量的数据.
之后,您将需要根据您的特定要求和规范(哪个用户?什么密码?)来手动验证/测试用户名和密码.
To add to Richard''s answer.
UpdateData will set the data to/from the UI to/from internal variables.
After that, you will need to manually validate/test user and password depending on your particular requirements and specifications (what user? what password?).
使用 ^ ]函数.
这篇关于如何做(窗体验证)验证vc ++ MFC中的对话框值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文