an easy question but i cant find how to do it anywhere, imust be searching for the wrong thing.
basically i have an mfc app with a button on it when its click i want to open that window in the existing window rather than opening a new one using the following code.
CAddDlg addDlg = new CAddDlg;
long ret = addDlg->DoModal();
how can i do this please??