class CMainFrame : public CMDIFrameWnd
{
...
private:
CProcessSetting *m_dlg;
CIPSetting *m_IPDlg;
}
// 생성자에
// -------------------------------------------------------
// Setting Dlg 동적생성
// -------------------------------------------------------
m_dlg = new CProcessSetting();
m_dlg->Create(IDD_SETTING,this);
// -------------------------------------------------------
// -------------------------------------------------------
// IP Dlg Setting
// -------------------------------------------------------
m_IPDlg = new CIPSetting();
m_IPDlg->Create(IDD_IPSETTING,this);
// -------------------------------------------------------
//파괴자에
// -------------------------------------------------------
// 다이얼로그 해제
// -------------------------------------------------------
m_dlg->DestroyWindow();
m_IPDlg->DestroyWindow();
SAFE_DELETE(m_dlg);
SAFE_DELETE(m_IPDlg);
// -------------------------------------------------------
// 다이얼로그를 호출할때
m_IPDlg->ShowWindow(SW_SHOW);