hello everyone, i need to open a modal dialog on my window for which i use the command DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG1), hwndMain, (DLGPROC)Dlg1); where hwndMain is the window handlein which i want to open my modal dialog i have 2 buttons on my dalog box one is a OK button clicking on which should pop up a messagebox and a Open button, clicking on which should open another modal dialog IDD_DIALOG2 with parent IDD_DIALOG1. on clicking the OK button the code written is MessageBox(hwndDlg1,_T("Clickme"),_T("Error"),MB_OK|MB_ICONINFORMATION); where hwndDlg1 is the handle of IDD_DIALOG1.but now i am not able to click on the message box. on clicking the Open button the code written is DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG2), NULL, (DLGPROC)Dlg2); here to i am not able to click on the dialog box. please help me with this problem tahnk you