From: Guido Franzke on
Hello NG,

I want to add a new Doc/View Window with menu in my MDI app.

I use MS Developer 2003, Version 7.1.

Up to now, I wrote all classes and resources alone, i.e. CNewDoc, CNewFrame,
CNewView, IDR_NEW_VIEW_TMPL, IDD_NEWVIEW, ...
And in CMyApp::InitInstance AddDocTemplate(...).

Is this the only way? Or can the developer studio add all that stuff the
same way as it does when I start a new MDI project?

Thanks for hints,
Guido


From: Tom Serface on
You just need to do it manually like you are doing:

http://msdn.microsoft.com/en-us/library/0dyc0e53(VS.80).aspx


Tom

"Guido Franzke" <guidof73(a)yahoo.de> wrote in message
news:Okgw3Rr5KHA.1424(a)TK2MSFTNGP04.phx.gbl...
> Hello NG,
>
> I want to add a new Doc/View Window with menu in my MDI app.
>
> I use MS Developer 2003, Version 7.1.
>
> Up to now, I wrote all classes and resources alone, i.e. CNewDoc,
> CNewFrame,
> CNewView, IDR_NEW_VIEW_TMPL, IDD_NEWVIEW, ...
> And in CMyApp::InitInstance AddDocTemplate(...).
>
> Is this the only way? Or can the developer studio add all that stuff the
> same way as it does when I start a new MDI project?
>
> Thanks for hints,
> Guido
>
>
From: Joseph M. Newcomer on
Just add the code by hand. It is a common misconception that the tooling is powerful
enough to do things we should expect it to be powerful enough to do, such as adding a new
doc/view pair.

Note that unless you need some exotic frame behavior (such as a frame that can't be
closed), there is no reason to create a new frame class; you can use the existing frame
class.
joe
On Wed, 28 Apr 2010 11:21:48 +0200, "Guido Franzke" <guidof73(a)yahoo.de> wrote:

>Hello NG,
>
>I want to add a new Doc/View Window with menu in my MDI app.
>
>I use MS Developer 2003, Version 7.1.
>
>Up to now, I wrote all classes and resources alone, i.e. CNewDoc, CNewFrame,
>CNewView, IDR_NEW_VIEW_TMPL, IDD_NEWVIEW, ...
>And in CMyApp::InitInstance AddDocTemplate(...).
>
>Is this the only way? Or can the developer studio add all that stuff the
>same way as it does when I start a new MDI project?
>
>Thanks for hints,
>Guido
>
Joseph M. Newcomer [MVP]
email: newcomer(a)flounder.com
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm