Discussion:
Opinion on Easiest Way
(too old to reply)
Rich S.
2006-03-16 21:08:32 UTC
Permalink
Hello,

On the web I have seen a few different ways to implement multiple views for
a single document. One solution I saw was to use a custom MultiDocTemplate
class.

My program will have only one document open at a time, but needs to present
the information in several different ways, using very different views.

What do people in the group believe is the best technique to implement such
a design with MFC ?

Rich
Scott McPhillips [MVP]
2006-03-16 22:49:41 UTC
Permalink
Post by Rich S.
Hello,
On the web I have seen a few different ways to implement multiple views for
a single document. One solution I saw was to use a custom MultiDocTemplate
class.
My program will have only one document open at a time, but needs to present
the information in several different ways, using very different views.
What do people in the group believe is the best technique to implement such
a design with MFC ?
Rich
The easiest way is an SDI app with splitter windows. MSDN has several
examples, including "swsplit" which is very flexible. I also like the
splitter approach because with the MDI approach I find that many users
lose views behind other views.
--
Scott McPhillips [VC++ MVP]
Ajay Kalra
2006-03-16 22:57:41 UTC
Permalink
Post by Rich S.
Hello,
On the web I have seen a few different ways to implement multiple views for
a single document. One solution I saw was to use a custom
MultiDocTemplate
Post by Rich S.
class.
My program will have only one document open at a time, but needs to present
the information in several different ways, using very different views.
What do people in the group believe is the best technique to implement such
a design with MFC ?
In addition to Scott's reply, take a look at example CHKBOOK, which should
be exactly what you want.

--
Ajay Kalra [MVP - VC++]
***@yahoo.com
Rich S.
2006-03-16 23:43:27 UTC
Permalink
Post by Rich S.
Post by Rich S.
Hello,
On the web I have seen a few different ways to implement multiple views
for
Post by Rich S.
a single document. One solution I saw was to use a custom
MultiDocTemplate
Post by Rich S.
class.
My program will have only one document open at a time, but needs to
present
Post by Rich S.
the information in several different ways, using very different views.
What do people in the group believe is the best technique to implement
such
Post by Rich S.
a design with MFC ?
In addition to Scott's reply, take a look at example CHKBOOK, which should
be exactly what you want.
--
Ajay Kalra [MVP - VC++]
Thank you both very much for your input. It is very much appreciated.

Rich
Tom Serface
2006-03-17 01:01:50 UTC
Permalink
If you don't need to see all the views at once you could do something with
tabs:

http://www.codeproject.com/docview/TabbedMDIChildWnd.asp

http://codeguru.earthweb.com/cpp/w-d/doc_view/tabs/article.php/c6107/

Tom
Post by Rich S.
Hello,
On the web I have seen a few different ways to implement multiple views for
a single document. One solution I saw was to use a custom
MultiDocTemplate
class.
My program will have only one document open at a time, but needs to present
the information in several different ways, using very different views.
What do people in the group believe is the best technique to implement such
a design with MFC ?
Rich
Loading...