CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 1999
    Posts
    1

    Documnet view architecture






    Dear gurus, i want to know how to a variable stored in a document object from 2 or 3 views. I have 2 doc.templates with same document object but different view objects. p.s help me.


    thank you

  2. #2
    Join Date
    Apr 1999
    Posts
    191

    CView::GetDocument()?



    Do you mean you want to access a document variable from the view class? Just use GetDocument()->m_myVariable.

  3. #3
    Join Date
    Apr 1999
    Posts
    6

    Re: CView::GetDocument()?



    + GetActiveView() to get the view pointer which you're intrested in or functions to walk through all the views, till you find who the underlying view you're intrested in.(GetFirstViewPosition, GetNextView)

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