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. MFC Project Style "Visual Studio", but Single Document with multiple views

MFC Project Style "Visual Studio", but Single Document with multiple views

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiocsharpc++wpfarchitecture
4 Posts 2 Posters 1 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.
  • M Offline
    M Offline
    Member 8534035
    wrote on last edited by
    #1

    Hi all, I am starting to create a framework/IDE for special type of project files. The GUI like Visual Studio would be perfect for my needs and it can be easily created wih assistance from MFC Application Wizard (Options: "MFC" + "Multiple Documents" + "Doc/View Architecture" + "Visual Studio Project Style") But this solves only the "surface"...internally I need another structure...I have only one document, but I need to create a bunch of views for the document. In the "File Explorer" view there should be viewed the structure of the document and in the child view area there should be viewed all views (like the "Tabbed Documents"), related to the document. But I have absolutely no idea, how to solve this! Are the any examples, I could use as templates? Or are there any general ideas, how to solve? Many Thanks Richard

    L 1 Reply Last reply
    0
    • M Member 8534035

      Hi all, I am starting to create a framework/IDE for special type of project files. The GUI like Visual Studio would be perfect for my needs and it can be easily created wih assistance from MFC Application Wizard (Options: "MFC" + "Multiple Documents" + "Doc/View Architecture" + "Visual Studio Project Style") But this solves only the "surface"...internally I need another structure...I have only one document, but I need to create a bunch of views for the document. In the "File Explorer" view there should be viewed the structure of the document and in the child view area there should be viewed all views (like the "Tabbed Documents"), related to the document. But I have absolutely no idea, how to solve this! Are the any examples, I could use as templates? Or are there any general ideas, how to solve? Many Thanks Richard

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      When you create your project you select a CView derived class for the view of the document. You can add more different views or create some of your own. The MFC templates have a few options if I remembr correctly, and there are samples in the MSDN website and elsewhere[^].

      M 1 Reply Last reply
      0
      • L Lost User

        When you create your project you select a CView derived class for the view of the document. You can add more different views or create some of your own. The MFC templates have a few options if I remembr correctly, and there are samples in the MSDN website and elsewhere[^].

        M Offline
        M Offline
        Member 8534035
        wrote on last edited by
        #3

        yes, you are right. I have overseen this! When I create a MDI application, I am able to create several views by default already. Actually my application should act like an SDI application. One document, on which I have several views. But when selecting SDI style in VS Project Wizard, I do not have this "tabbed document" style, which I would need. In the case I am using MDI style, my challenge is now, to manipulate the MDI behaviour, that it acts like SDI. A bit weird, but seems to be the fastest approach. If this approach is reasonable, I should create a new thread for it in the forum....

        L 1 Reply Last reply
        0
        • M Member 8534035

          yes, you are right. I have overseen this! When I create a MDI application, I am able to create several views by default already. Actually my application should act like an SDI application. One document, on which I have several views. But when selecting SDI style in VS Project Wizard, I do not have this "tabbed document" style, which I would need. In the case I am using MDI style, my challenge is now, to manipulate the MDI behaviour, that it acts like SDI. A bit weird, but seems to be the fastest approach. If this approach is reasonable, I should create a new thread for it in the forum....

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          Why not use https://msdn.microsoft.com/en-us/library/bb983705(v=vs.110).aspx[^].

          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