MFC: After applying a CSplitterWnd to my CChildFrame the main window title isn't updated any more

146 views Asked by At

Still using VS 2008, I have split my MDI view class in my CChildFrame to facilitate a navigation sidebar (a CListCtrl) next to my old CScrollView using a static splitter (source code). This however implied two side effects: Beside the mouse wheel no longer working (where I found a workaround for), the application window is no longer updated on SetPathName(). What do I need to do to bridge the splitter so the framework updates the application window again based on my CDocument?

1

There are 1 answers

6
sergiol On

On your MainFrame class, just put a method

void CMyFrame::OnUpdateFrameTitle(BOOL bAddToTitle)
{
    __super::OnUpdateFrameTitle(bAddToTitle);
}

and a breakpoint there, to see what happens. If needed, you will have to provide your own override instead of calling the __super implementation.