STDMETHODIMP CMonitor::DisplayDialog(...) { if( !m_pCustomDialog){ m_pCustomDialog = new CCustomDialog(); m_pCustomDialog->ShowWindow( SW_SHOW); ... } } STDMETHODIMP CMonitor::DestroyDialog(...) { if(m_pCustomDialog){ m_pCustomDialog->DestroyWindow(); delete m_pCustomDialog; m_pCustomDialog = NULL; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)