|
-
June 8th, 1999, 05:06 AM
#1
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
-
June 8th, 1999, 05:51 AM
#2
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
-
June 8th, 1999, 10:02 AM
#3
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|