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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How do I change from SDI to MDI?

How do I change from SDI to MDI?

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
3 Posts 3 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.
  • S Offline
    S Offline
    Stephen McGeown
    wrote on last edited by
    #1

    Hi folks, I created an SDI application using AppWizard but I wish I created an MDI application. Is there any way I can convert it to MDI without re-writing my app? Thanks for your help!:confused: Scotland - it's nice when it's not raining.

    C T 2 Replies Last reply
    0
    • S Stephen McGeown

      Hi folks, I created an SDI application using AppWizard but I wish I created an MDI application. Is there any way I can convert it to MDI without re-writing my app? Thanks for your help!:confused: Scotland - it's nice when it's not raining.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      I doubt it - MDI has a lot of differences to SDI, including different classes that need to be created. Usually to make a change to what the initial options are you create two empty projects that differ only in the thing you want to chage, then run a diff tool over them. In this case, I'd say it's unlikely. Christian I've learned that you cannot make someone love you. All you can do is stalk them and hope they panic and give in. The early bird may get the worm, but it's the second mouse that gets the cheese.

      1 Reply Last reply
      0
      • S Stephen McGeown

        Hi folks, I created an SDI application using AppWizard but I wish I created an MDI application. Is there any way I can convert it to MDI without re-writing my app? Thanks for your help!:confused: Scotland - it's nice when it's not raining.

        T Offline
        T Offline
        Tomasz Sowinski
        wrote on last edited by
        #3

        The best way to accomplish SDI->MDI migration is creating empty MDI project and transferrind application/document/view classes from SDI to MDI. What's not moved is the CMainFrame class - it'll be different in MDI app. Additionally, you'll have to replace CSingleDocTemplate with CMultiDocTemplate in InitInstance method of your application class. The process should be rather straightforward, and much easier than changing your existing project to MDI "in-place". Tomasz Sowinski -- http://www.shooltz.com.pl

        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