Click here to Skip to main content
15,913,669 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
C++
//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();
}
Posted
Updated 15-Aug-12 23:13pm
v3
Comments
Joan M 16-Aug-12 4:58am    
Even after updating your question it is not clear what you want or need, please put some effort into it and try to make the rest of us (mortals) to understand what you need.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900