CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2012
    Posts
    8

    Multiple views wired to same CDocument, not with CMultiDocTemplate

    Hi,

    Currently I have a quite advanced MDI application that has 5 views to the same document. I created these views with CMultiDocTemplate, realizing now that I don't have one document, I have 5 instances of the same CDocument class. This is of course quite a problem for me. So, how can I wire all 5 views (CFormView based) to the same document? I've searched quite a bit but apparently haven't found anything that creates a CFormView and attaches it to an existing document. Any help is greatly appreciated

    -OC

  2. #2
    Join Date
    May 2012
    Posts
    8

    Re: Multiple views wired to same CDocument, not with CMultiDocTemplate

    I fixed it using CCreateContext with each CMultiDocTemplate linking to only one instant of the same document class.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured