Hi, when i tried with single dialog box it is working but when i include another it is not working. This is how i did 1)Create an SDI application (as our project is done using SDI application) 2)2 new dialog boxes 3)On execution first dialog box opens with OK and CANCEL button (minimize is working fine).On pressing OK button second dialog box opens whose mimimize is not working. 4)Code changes which i have made is as below 1) BOOL CTest_minimizebutApp::InitInstance() { CSingleDocTemplate* pDocTemplate; pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CTest_minimizebutDoc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CTest_minimizebutView)); dlg.DoModal(); // AddDocTemplate(pDocTemplate); // Parse command line for standard shell commands, DDE, file open CCommandLineInfo cmdInfo; ParseCommandLine(cmdInfo); } 2) void CmainDialog::OnOK() { // TODO: Add extra validation here dlg1.DoModal(); CDialog::OnOK(); }