window differentianting problem
Hi. I'm making a program that is initalized by a Dialogue box:
Once I receive all the input from the user, I want to open another DialogBox and print the results in there.
The problem is, once I open the new DialogBox inside of the other Dialogbox like this:
I need to be able to compare in the WM_INITDIALOG: whether this is the parent window or this is the window spawned inside the parent window (idd_results_dlg). What I eventually want to do is sprintf information into the results in real-time while the program is working. If there is a way I can make this work or an easier way to implement this, please let me know.
HWND hWndResults = GetDlgItem(hWndDlg, IDC_RESULTS);
DialogBox(0, MAKEINTRESOURCE(IDD_RESULTS_DLG), hWndResults, reinterpret_cast<DLGPROC>(DlgProc));