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. MDI: New document using wizard (Where are you Microsoft people)

MDI: New document using wizard (Where are you Microsoft people)

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++
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.
  • T Offline
    T Offline
    Tarek Jabri
    wrote on last edited by
    #1

    Hello everybody i am working on MDI application using mfc, the user can have new file in the regular way, or by using a wizard. i have no problem in the regular way since the document , the view and the framework are attached to each other in the initinstance method in the application. the problem is in the wizard way. in the wizard i have to set the child frame hidden, and attach the document to the wizard, and to destroy the document after finishing the wizard. any help or sample is appreciated thanks alot bye

    F 1 Reply Last reply
    0
    • T Tarek Jabri

      Hello everybody i am working on MDI application using mfc, the user can have new file in the regular way, or by using a wizard. i have no problem in the regular way since the document , the view and the framework are attached to each other in the initinstance method in the application. the problem is in the wizard way. in the wizard i have to set the child frame hidden, and attach the document to the wizard, and to destroy the document after finishing the wizard. any help or sample is appreciated thanks alot bye

      F Offline
      F Offline
      FarPointer
      wrote on last edited by
      #2

      hi, Why you want to destroy the doc in the finish of your wizard . After the wizard is over the view comes up is that the way your app works . Regards, FarPointer Blog:http://farpointer.blogspot.com/

      T 1 Reply Last reply
      0
      • F FarPointer

        hi, Why you want to destroy the doc in the finish of your wizard . After the wizard is over the view comes up is that the way your app works . Regards, FarPointer Blog:http://farpointer.blogspot.com/

        T Offline
        T Offline
        Tarek Jabri
        wrote on last edited by
        #3

        Hi first thanks alot for your reply actually in the finish page of the wizard i give the user the choice to end the document and save the results in a file, or to open the view to show him the data he already chose in the wizard to enable him to update them. i also need to know how to hide the child frame, and how to associate the new document with the wizard thanks

        F 1 Reply Last reply
        0
        • T Tarek Jabri

          Hi first thanks alot for your reply actually in the finish page of the wizard i give the user the choice to end the document and save the results in a file, or to open the view to show him the data he already chose in the wizard to enable him to update them. i also need to know how to hide the child frame, and how to associate the new document with the wizard thanks

          F Offline
          F Offline
          FarPointer
          wrote on last edited by
          #4

          Hi , So let me get it straight :- So the view should come ony when he does a finish in the wizard and that to depending on the checkbox valueand I also assume that the wizard mode only gets enabled after the first document is created . if yes then you shouldnt take the pain to destroy the document since OnFileNew() will destroy the prev document(and it should be called in the wizard finish) if any present and if the user preses cancel in between the wizard mode you can show the previous view. So the problem comes were will you store the data during that process , I would suggest you to make an CContainer class which will hold the data and will stay in the App and in the finish after the document is created you set the container to the document and which will be deleted in its destructor . Regards, FarPointer Blog:http://farpointer.blogspot.com/

          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