关于删除无模对话框 [英] About Delete Modless Dialog

查看:87
本文介绍了关于删除无模对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

//MainWindow.h
CMyDialog m_Dlg;


//MainWindow.cpp
m_Dlg.Create();
m_Dlg.ShowWindow();


// SomeWhere1:
m_Dlg.DestroyWindow();
//Here,I Wanto To Whether Controls Resource On m_Dlg Is Deleted SuccessFully 


// SomeWhere2:
if(m_Dlg.GetSafeHwnd() == NULL){
   m_Dlg..Create();
   m_Dlg.ShowWindow();
}

推荐答案

根据
According to the documentation[^], this will return NULL if the object is not attached to a window. Should be easy enough to test with your debugger.


这篇关于关于删除无模对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆