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 multiple documents?

MFC multiple documents?

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
7 Posts 4 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.
  • I Offline
    I Offline
    IndrekSnt
    wrote on last edited by
    #1

    I have a MFC program which supports Documents but I want my program to start with multiple documents. How could it be possible? Earth is like an apple, where are worms in it - the worms are humans...

    A J 2 Replies Last reply
    0
    • I IndrekSnt

      I have a MFC program which supports Documents but I want my program to start with multiple documents. How could it be possible? Earth is like an apple, where are worms in it - the worms are humans...

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      I guess if you call OpenDocument as many times that many document window and view will be opened. IndrekSnt wrote: Earth is like an apple, where are worms in it - the worms are humans... IndrekSnt wrote: where are worms in it Is it a question or a statement?

      I 1 Reply Last reply
      0
      • A Anonymous

        I guess if you call OpenDocument as many times that many document window and view will be opened. IndrekSnt wrote: Earth is like an apple, where are worms in it - the worms are humans... IndrekSnt wrote: where are worms in it Is it a question or a statement?

        I Offline
        I Offline
        IndrekSnt
        wrote on last edited by
        #3

        BOOL CGLprMpDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } What do I have to write between lines: // (SDI documents will reuse this document) and: return TRUE; --- Earth is like an apple, where are worms in it - the worms are humans...

        L 1 Reply Last reply
        0
        • I IndrekSnt

          BOOL CGLprMpDoc::OnNewDocument() { if (!CDocument::OnNewDocument()) return FALSE; // TODO: add reinitialization code here // (SDI documents will reuse this document) return TRUE; } What do I have to write between lines: // (SDI documents will reuse this document) and: return TRUE; --- Earth is like an apple, where are worms in it - the worms are humans...

          L Offline
          L Offline
          l a u r e n
          wrote on last edited by
          #4

          errrrrrr to open multiple documents u need to be writing an MDI app MDI = multiple document interface SDI = single document interface


          "there is no spoon"
          biz stuff   about me

          1 Reply Last reply
          0
          • I IndrekSnt

            I have a MFC program which supports Documents but I want my program to start with multiple documents. How could it be possible? Earth is like an apple, where are worms in it - the worms are humans...

            J Offline
            J Offline
            JWood
            wrote on last edited by
            #5

            This may be a little off the wall but you might want to think about the benefits of using Forth. It is a fine training language and will allow you to master the concept of object oriented thinking and open many possibilities for you.


            My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds

            J 1 Reply Last reply
            0
            • J JWood

              This may be a little off the wall but you might want to think about the benefits of using Forth. It is a fine training language and will allow you to master the concept of object oriented thinking and open many possibilities for you.


              My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds

              J Offline
              J Offline
              JWood
              wrote on last edited by
              #6

              Kidding


              My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds

              I 1 Reply Last reply
              0
              • J JWood

                Kidding


                My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds

                I Offline
                I Offline
                IndrekSnt
                wrote on last edited by
                #7

                Hmm, I started a MFC MDI project but I don't know how to customise it more than MFC MDI wizard allows... --- Earth is like an apple, where are worms in it - the worms are humans...

                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