CWnd::Updata的作用

CWnd::UpdateData

调用此成员函数以在对话框中初始化数据,或者取回和验证对话框数据。

BOOL UpdateData(BOOL bSaveAndValidate = TRUE);

参数

bSaveAndValidate

标志(FLASE)表示初始化对话框,(TRUE)表示数据被取回。

返回值

操作成功返回非零,否则返回零。如果bSaveAndValidate 是TRUE, 返回值为非零表示数据获取成功。

Nonzero if the operation is successful; otherwise 0. If bSaveAndValidate is TRUE, then a return value of nonzero means that the data is successfully validated.

评论:

The framework automatically calls UpdateData with bSaveAndValidate set to FALSE when a modal dialog box is created in the default implementation of CDialog::OnInitDialog. The call occurs before the dialog box is visible. The default implementation of CDialog::OnOK calls this member function with bSaveAndValidate set to TRUE to retrieve the data, and if successful, will close the dialog box. (If the Cancel button is clicked in the dialog box, the dialog box is closed without the data being retrieved.)

最新文章

  1. 表单 - Validatebox - 表单参数校验
  2. MVC5-9 今天讲三个Descriptor
  3. html5拖拽
  4. 20151124001 关闭C#主窗体弹出是否关闭对话框
  5. css之border,dispaly
  6. Linux 64位编译\链接32位程序
  7. ubuntu(16.04.01)学习-day2
  8. wcf的连接数
  9. 【oracle案件】ORA-19502,ORA-27072
  10. PAT1029.Median (25)
  11. ●BZOJ 3172 [Tjoi2013]单词
  12. PLSQL 报错弹框乱码
  13. Docker-CentOS7-安装
  14. gcc __thread关键字
  15. css实现连续数字和英文的自动换行的方法
  16. usb鼠标制作调试记录
  17. 一个ipv4到ipv6的移植问题
  18. python爬虫之pyquery学习
  19. javascript 页面导出功能
  20. js实现类似微信网页版在可编辑的div中粘贴内容时过滤剪贴板的内容,光标始终在粘贴内容后面,以及将光标定位到最后的方法

热门文章

  1. 在word文档中添加上角标和下角标
  2. 入口函数WinMain
  3. python学习笔记7-异常处理
  4. 51nod1174【基于线段树的RMQ】
  5. POJ2576【背包】
  6. AspectCore的AOP操作
  7. 图论之最小生成树之Kruskal算法
  8. Spring 中的 18 个注解,你会几个?
  9. 第十六篇 .NET高级技术之序列化
  10. Vant入门