UpdateData函数

UpdateData函数nbsp CWnd UpdateDataBO BOOLbSaveAnd TRUE ReturnValueN otherwise0 IfbSaveAndVa thenareturnv

 

CWnd::UpdateData

BOOL UpdateData( BOOL bSaveAndValidate = TRUE );

Return Value

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.

Parameters

bSaveAndValidate

Flag that indicates whether dialog box is being initialized (FALSE) or data is being retrieved (TRUE).

Remarks

Call this member function to initialize data in a dialog box, or to retrieve and validate dialog data.

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.)

 

说明:

该函数的参数:

FALSE:函数将成员变量的值传递给对话框的变量;

TRUE:反之;

 

 

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/201463.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月20日 上午9:20
下一篇 2026年3月20日 上午9:20


相关推荐

  • python多线程tomorrow的使用

    python多线程tomorrow的使用安装pipinstalltomorrow使用:在需要多线程执行的方法上打上注解@threads(2)即可@threads(5)defmethod_001(i):print(i)if__name__==’__main__’:foriinrange(0,100):method_001(i)报错:async关键字冲突,这是python3才会报的错。解决:修改方法名…

    2025年5月23日
    7
  • 3DES 加解密

    3DES 加解密

    2021年8月25日
    60
  • 初学SpringBoot框架: Dao层、Service层、Controller层的作用

    初学SpringBoot框架: Dao层、Service层、Controller层的作用1 Dao 层 全称 DataAccessOb Dao 层比较底层 负责与数据库打交道具体到对某个表 某个实体的增删改查 2 Service 层 又叫服务层或业务层 封装 Dao 层的操作 使一个方法对外表现为实现一种功能 例如 网购生成订单时 不仅要插入订单信息记录 还要查询商品库存是否充足 购买是否超过限制等等 3 Controller 层 业务控制层 负责接收数据和请

    2026年3月16日
    2
  • Ubuntu12.10编译MPTCP

    Ubuntu12.10编译MPTCP准备工作 1 操作系统 Ubuntu 12 10 desktop i386 32 位 或者 Ubuntu 14 04 desktop amd64 64 位 2 Mptcp 源码 从官网下载 http multipath tcp org snapshots 我下载的是 mptcp 2015 11 17 tar gz 安装系统编译 mptcp 源码 1 安装操作系统 并安装好网卡驱动 网卡驱动安装见上

    2026年3月17日
    2
  • linux vim复制粘贴命令_在Linux如何复制

    linux vim复制粘贴命令_在Linux如何复制将光标移动到复制的起始位置,按一下大写V或小写v,(大写V是整行,小写是光标处),然后上下左右将光标移动到复制的末尾,然后按下y,移动到要粘贴的位置,按下大写P或小写p(大写P:光标之前粘贴,小写p光标之后粘贴);总结:光标处起始处——按V/v——移动到复制的末尾处——按y——光标移到想粘贴的地方——按P/p;想要剪切的话,把y换成dd;…

    2026年2月17日
    4
  • 服务器seo优化,SEO诊断之网站服务器优化「建议收藏」

    服务器seo优化,SEO诊断之网站服务器优化「建议收藏」前一章节子凡已经通过网站域名检查做过最基础的SEO诊断,接下来也是网站SEO诊断中最基础,也是较为重要的要素,没有域名,没有服务器,网站就无处容身,也就不会存在子凡分享的SEO话题了。一、网站服务器速度的重要性在网站速度方面我们要求自己的网站速度当然是越快越好,如果网站打开速度在5~40毫秒是为最佳效果。假设你的网站打开速度基本都在100ms左右,对于个人博客或者网站算是比较给力…

    2025年12月11日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号