问题
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