Switching views in SDI application
-
Hello all !! I have a SDI application (using form view) and I would like several views that can be switched via the toolbar (a single view is shown at once). Every view has it's own class and own 'window' and must be linked to the document. Any hints for doing this simply ?? Thanks Cedric Moonen
-
Hello all !! I have a SDI application (using form view) and I would like several views that can be switched via the toolbar (a single view is shown at once). Every view has it's own class and own 'window' and must be linked to the document. Any hints for doing this simply ?? Thanks Cedric Moonen
Are you using the Doc / View framework? Try this: Replacing a view in a doc-view application[^] Read all the comments, as there are bugs in the code that are corrected in the comments. Regards, João Paulo
-
Hello all !! I have a SDI application (using form view) and I would like several views that can be switched via the toolbar (a single view is shown at once). Every view has it's own class and own 'window' and must be linked to the document. Any hints for doing this simply ?? Thanks Cedric Moonen
You can also try this one: Creating MDI Programs with eVC++ 3.0[^] Regards, João Paulo
-
Hello all !! I have a SDI application (using form view) and I would like several views that can be switched via the toolbar (a single view is shown at once). Every view has it's own class and own 'window' and must be linked to the document. Any hints for doing this simply ?? Thanks Cedric Moonen
I used this article for my multi view application. http://www.codeproject.com/docview/switchingviews.asp It worked fine for me in both my desktop application and my ppc application. -Eric
-
Hello all !! I have a SDI application (using form view) and I would like several views that can be switched via the toolbar (a single view is shown at once). Every view has it's own class and own 'window' and must be linked to the document. Any hints for doing this simply ?? Thanks Cedric Moonen
Ok, nice!! Thanks :-)! I think I will take the third solution because I just want my views to be hidden and not destroyed. Again, thanks! Cedric