Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Document Template/View Parameters and initialization

Status
Not open for further replies.

ed9871

Programmer
Jan 15, 2002
14
0
0
US
I have an MDI app that has multiple document templates. I create a pointer to each and then when I want to activate a Doc/View I use:

theApp.m_ptSCR->OpenDocumentFile(NULL);

This works perfectly for the default behavior of the views, but I need to be able to pass parameters to have a different behavior occur in the OnInitialUpdate function in my view classes. How do I get the parameters passed through to the view?

Ed
 
Also is this the correct way to open up a new doc/view? It is straight from the 'MFC Answer Book'.

Ed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top