Click to See Complete Forum and Search --> : 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
ric
June 8th, 1999, 05:51 AM
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
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;
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.