csplitterwnd

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

How to split a Window dynamically in MFC without using CSplitterWnd::Create

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-07 06:20:15
问题 I create a MFC MDI application, and want to split a window into two parts at a time dynamically by right click and choosing a "AddSplitWnd" pop menu item. I try to use CSplitterWnd::CreateStatic to implement it, once the window is split, it need to create a new view, but I want to use the previous view instead, so does anyone know how to implement it. Thank you. 回答1: Here is a code snippet to exchange views in a splitter in a SDI environment. This should be adaptable to work in MDI as well.