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

旧时模样 提交于 2021-02-17 05:37:51

问题


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:


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.



来源:https://stackoverflow.com/questions/66186021/mfc-after-applying-a-csplitterwnd-to-my-cchildframe-the-main-window-title-isnt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!