Creating View without document?
-
Hi, Is it possible to create a view (In MFC MDI app)without document as follows? CMultiDocTemplate* pDocTemplate = new CMultiDocTemplate(IDR_CheckTYPE, NULL, RUNTIME_CLASS(CChildFrame), RUNTIME_CLASS(CCheckView)); I mean, passing NULL for the document runtimeclass and use pDocTemplate->CreateNewFrame(). Thanks, Prasanth
-
Hi, Is it possible to create a view (In MFC MDI app)without document as follows? CMultiDocTemplate* pDocTemplate = new CMultiDocTemplate(IDR_CheckTYPE, NULL, RUNTIME_CLASS(CChildFrame), RUNTIME_CLASS(CCheckView)); I mean, passing NULL for the document runtimeclass and use pDocTemplate->CreateNewFrame(). Thanks, Prasanth
Why you do not want to use the CDocument?
I'd rather be phishing!
-
Hi, Is it possible to create a view (In MFC MDI app)without document as follows? CMultiDocTemplate* pDocTemplate = new CMultiDocTemplate(IDR_CheckTYPE, NULL, RUNTIME_CLASS(CChildFrame), RUNTIME_CLASS(CCheckView)); I mean, passing NULL for the document runtimeclass and use pDocTemplate->CreateNewFrame(). Thanks, Prasanth
-
Hi, Is it possible to create a view (In MFC MDI app)without document as follows? CMultiDocTemplate* pDocTemplate = new CMultiDocTemplate(IDR_CheckTYPE, NULL, RUNTIME_CLASS(CChildFrame), RUNTIME_CLASS(CCheckView)); I mean, passing NULL for the document runtimeclass and use pDocTemplate->CreateNewFrame(). Thanks, Prasanth
-
Yes, I do it all the time. - basically, the "View" will not be attached to the derived object class of (CDocument). - the attached derived (CDocument) object is intended to update the View when the derived object changes.
Thanks!