CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Guest

    Update only 1 of 2 views in an SDI with a splitterwnd

    I'm writing an SDI that has 2 views of on a single doc using a splitter window. My question is how do I update only one of the views and not the other, from the document class, or any for that matter. I was able to get a pointer to the view, but it won't let me call OnUpdate directly. I want to do this for performance reasons (it's an opengl program).

    Thanks in advance!
    Rich Taylor


  2. #2
    Join Date
    Apr 1999
    Posts
    306

    Re: Update only 1 of 2 views in an SDI with a splitterwnd

    I do not remember very well, but once I have the same thing to do and as far as I remember I did
    something of the kind:

    GetDocument()->UpdateAllViews(this,0,0);

    I think that UpdateAllViews has a version that takes the CWnd* pointer to the window that must not be
    updated. So calling it with parameter 'this' from the one view it will update only the other.

    Excuse me if I am wrong but have not got the reference now to check.

    Regards,
    ric


  3. #3
    Guest

    Re: Update only 1 of 2 views in an SDI with a splitterwnd

    Or do something like UpdateAllViews(NULL,1,0), and in the OnUpdate of the view
    you do not want to update if (lHint == 1) return;


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