Creating static splitter windows "dynamically"
Posted on 1997-05-30
Is it OK to create static splitter windows (i.e. with an object of CSplitterWnd and it's CreateStatic function) at various points within the life of an application or should it be done in the frame windows OnCreateClient function call only (as does all of the MFC sample code I have found)?!? I would like the user to be able to interactively add/remove views (and thus splitter window panes) to an existing MDI
child frame window. I have a preliminary test app that seems to work OK. This app embeds additional CSplitterWnd objects within existing CSplitterWnd objects (by specifying the existing CSplitterWnd object as the parent of the new CSplitterWnd object similar to the VIEWX example) at times other than within the frame windows OnCreateClient function.
Has anyone else created "dynamic" static splitter windows and, if so, are there inherent problems in doing so?
Thanks in advance,