set focus on view
Posted on 1999-07-29
I have a sdi split window app.
From a function in one view I would like to put the focus back on the other view.
I asked this Q before, and I was told I could use:
from Anywhere in my code.
Or do the following:
// code above
the problem I have is how do I use SetActivePane from within a cview class. Do I need to get the CSplitterWnd object from CMainFrame? How?
And if I was using the second method how do I get pview2 so that it corresponds to the view on screen.
I think both probs are along similar lines, and probably indicate some lack of understanding in c++.
If someone could please explain to me how I should be trying to so this I would be very grateful.