First I'll explain what exactly I want to do here. I have a dialog box in which I am showing a frame. Using menu from this dialog, I open another Dialog box which shows me macrogrid block information from the first dialog. So to show 2nd dialog box I am using function : DialogBox(hInst, MAKEINTRESOURCE(IDD_DIALOG1), NULL, DialogProc);
But this transfers the execution of the program to the new dialog box and I can't process further messages in the 1st dialog unless I close the new dialog box.

Can someone please tell me a way to solve this problem??? Is it the same thing as modal vs modeless dialog-boxes??