Hello,
I have an old MFC project in C++ on VS NET 2003 and I have the following issue.
My project is a SDI in which I put a SplitterWnd to have two views.
And I would like to detect view activation change to perform some activations/desactivations.
As it seems to correspond exactly to what I am looking for, I tried to inherit CFrameWnd::SetActiveView(CView* pViewNew, BOOL bNotify) in my CMainFrame (public derived from CFrameWnd) in public as follow:
in .h:
public:
void SetActiveView(CView* pViewNew, BOOL bNotify = TRUE);
in .cpp:
void CMainFrame::SetActiveView(CView* pViewNew, BOOL bNotify)
{
Beep (440, 200);
CFrameWnd::SetActiveView(pViewNew, bNotify);
}
And my function is never called; the CFrameWnd::SetActiveView() remains the one which is called.
Perhaps, there is a message handler or something else to add? or a specific limitation/incompatibility/bug?
It should be easy, but...
Thank you in advance for your help,
Eric
What I have tried:
Inherit CFrameWnd::SetActiveView()