Prev: THIS_FILE' : redefinition; different storage class while changing setting from /MD to /MDD
Next: THIS_FILE' : redefinition; different storage class while changing setting from /MD to /MDD
From: Guido Franzke on 28 Apr 2010 05:21 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 28 Apr 2010 07:26 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 28 Apr 2010 09:13
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 |