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. Help me!

Help me!

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
4 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.
  • S Offline
    S Offline
    SmilingHeart
    wrote on last edited by
    #1

    I have created an MDI application. In this application, I have a class CMyDoc,which is inherited from CDocument. Now I want to write some code to open a document of this kind, while not showing the frame and view which are associated with the document. I write these codes: { ... CMyDoc * pDoc=(CMyDoc*)theApp.OpenDocumentFile(m_strNewFileName); ... } As you can guess,the frame and view are showed.Please tell me how to open a document without showing the frame and view . I love sea

    C 1 Reply Last reply
    0
    • S SmilingHeart

      I have created an MDI application. In this application, I have a class CMyDoc,which is inherited from CDocument. Now I want to write some code to open a document of this kind, while not showing the frame and view which are associated with the document. I write these codes: { ... CMyDoc * pDoc=(CMyDoc*)theApp.OpenDocumentFile(m_strNewFileName); ... } As you can guess,the frame and view are showed.Please tell me how to open a document without showing the frame and view . I love sea

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

      If you didn't open the view, how would the document be shown ? The point of a view is that it's how a document is rendered. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002

      S 1 Reply Last reply
      0
      • C Christian Graus

        If you didn't open the view, how would the document be shown ? The point of a view is that it's how a document is rendered. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002

        S Offline
        S Offline
        SmilingHeart
        wrote on last edited by
        #3

        To Christian, First thank you very much for your reply! Yeah,I agree about what you have said. But what i want to do now, is to read ~~~~~ the content of a document.And I donot want that the view and frame are to be ~~~~~~~~~~~~~~~~~~~~~~~~~ showed. Let us take an example: Suppose that you are going to load the content of a *.txt file. Must you run an notepad.exe? No. You can make it by writing such codes: CStdioFile f(...); Do you catch what i mean? I love sea

        C 1 Reply Last reply
        0
        • S SmilingHeart

          To Christian, First thank you very much for your reply! Yeah,I agree about what you have said. But what i want to do now, is to read ~~~~~ the content of a document.And I donot want that the view and frame are to be ~~~~~~~~~~~~~~~~~~~~~~~~~ showed. Let us take an example: Suppose that you are going to load the content of a *.txt file. Must you run an notepad.exe? No. You can make it by writing such codes: CStdioFile f(...); Do you catch what i mean? I love sea

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

          Ah - what is the document ? If it's a custom thing, abstract the loading code into a class, then you can call it from where-ever you like. Christian No offense, but I don't really want to encourage the creation of another VB developer. - Larry Antram 22 Oct 2002 C# will attract all comers, where VB is for IT Journalists and managers - Michael P Butler 05-12-2002 Again, you can screw up a C/C++ program just as easily as a VB program. OK, maybe not as easily, but it's certainly doable. - Jamie Nordmeyer - 15-Nov-2002

          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