Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. SDI and dialog based application

SDI and dialog based application

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Johnny Peszek
    wrote on last edited by
    #1

    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.

    W 1 Reply Last reply
    0
    • J Johnny Peszek

      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.

      W Offline
      W Offline
      wb
      wrote on last edited by
      #2

      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.

      J 1 Reply Last reply
      0
      • W wb

        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.

        J Offline
        J Offline
        Johnny Peszek
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups