怎么删除一个动态创建的对话框?

如何删除一个动态创建的对话框??

CRect rc;
m_PatientDlg.Create(IDD_DIALOG_Patient,NULL);
m_PatientDlg.GetWindowRect(&rc);

m_Width = rc.Width();
m_Height = rc.Height();
m_left = m_AllWidth/2-m_Width/2;
m_Top = m_AllHeight/2-m_Height/2;

m_PatientDlg.ShowWindow(SW_SHOWNA);
m_PatientDlg.MoveWindow(m_left,m_Top,m_Width,m_Height);



然后咋删除呢??谢谢赐教

------解决方案--------------------
DestroyWindow();
------解决方案--------------------
m_PatientDlg.DestroyWindow();
当你不想显示对话框时执行这句话