SDI and dialog based application
-
Hi! I have source codes of my programs. One of them is dialog based application and the other is SDI Single Document Interface. I would like to combine that two sources into one. SDI program should have the dialog based program inside. What should I do? Best regards.
-
Hi! I have source codes of my programs. One of them is dialog based application and the other is SDI Single Document Interface. I would like to combine that two sources into one. SDI program should have the dialog based program inside. What should I do? Best regards.
CSdiApp CSdiDoc CSdiView CSdiMainFrame ---------------- CDialogApp CDialogDlg --------------- now copy the clas CDialogDlg to the SDI app, you must also open the .rc file from the dialog app and add the dialogtemplate to your SDI app CSdiApp CSdiDoc CSdiView CSdiMainFrame CDialogDlg now you must check the CDialogApp class, if there is some code you must also add to your new App. Add a menuentrie to the Mainmenu, and in the eventhandler for this menu you can create a modal dialog of your old app and show it to the user... I hope this helps.
-
CSdiApp CSdiDoc CSdiView CSdiMainFrame ---------------- CDialogApp CDialogDlg --------------- now copy the clas CDialogDlg to the SDI app, you must also open the .rc file from the dialog app and add the dialogtemplate to your SDI app CSdiApp CSdiDoc CSdiView CSdiMainFrame CDialogDlg now you must check the CDialogApp class, if there is some code you must also add to your new App. Add a menuentrie to the Mainmenu, and in the eventhandler for this menu you can create a modal dialog of your old app and show it to the user... I hope this helps.
Hi Thanks for help. But I got two questions: wb wrote: now copy the clas CDialogDlg to the SDI app, you must also open the .rc file from the dialog app and add the dialogtemplate to your SDI app 1.I don’t know how to copy the calss CDialogDlg to the SDI app. I tried using Insert->New Class but I get that message: CDialogDlg.cpp is not a member of the current project. 2. I don’t know how to add the dialogtemplate do my SDI app. Any suggestions?