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