积极答复者
DestroyWindow(); 要怎么调用,下面的调用失败

问题
答案
-
DoModal出来的对话框得用EndDialog,不然DoModal没法获得返回值
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 Rob Pan 2011年4月22日 7:04
-
你DestroyWindow()删除了窗口,您后面的操作从OnInitDialog返回之后后面与窗口相关的处理流程就错误了。
您一创建窗口就要销毁窗口吗?另外您创建的是模态的还是非模态对话框呢?
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.- 已标记为答案 Rob Pan 2011年4月22日 7:04
全部回复
-
DoModal出来的对话框得用EndDialog,不然DoModal没法获得返回值
The following is signature, not part of post
Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
Visual C++ MVP- 已标记为答案 Rob Pan 2011年4月22日 7:04
-
你DestroyWindow()删除了窗口,您后面的操作从OnInitDialog返回之后后面与窗口相关的处理流程就错误了。
您一创建窗口就要销毁窗口吗?另外您创建的是模态的还是非模态对话框呢?
Visual C++ enthusiast, like network programming and driver development. At present is being engaged in the WinCE/Windows Mobile platform embedded development.- 已标记为答案 Rob Pan 2011年4月22日 7:04