EndDialog 与 DestroyWindow 的区别

来源:互联网 发布:淘宝开店装修 编辑:程序博客网 时间:2024/06/05 16:24
(1) EndDialog(0);

Call this method to destroy a modal dialog box.

EndDialog must be called through the dialog box procedure. After the dialog box is destroyed, Windows uses the value ofnRetCode as the return value for DoModal, which created the dialog box.

关闭模态对话框,并且将参数作为父对话框调用的返回值。

(2)  DestroyWindow();

Call this method to destroy a modeless dialog box.

DestroyWindow 关闭非模态对话框。 退出消息循环,真正结束进程。有不少程序窗口关闭,但是不等于退出运行。
0 0
原创粉丝点击