I noticed this method, PagePermanentWndGet, as part of the CExtTabPageContainerWnd class. However, I do not see this method documented anywhere. I’m wondering if there is a corresponding PagePermanentWndSet type of method available?
The reason I ask is the child window that is contained on each of my TabPageContainerWnd’s could change dynamically at run time. So, instead of doing a
PageInsert( m_arrGrids[i].m_hWnd, g_arrSampleNames[i], hIconTabCaption,(i == 0) ? false : true,-1, (i == 0) ? true : false))each time my child view/wnd is created/destroyed (this could happen N times during a normal user session), is there instead a way to just attach a new CWnd to an existing tab page dynamically? like this perhaps:
PageAttach( nPageIndex, hWndNewChildViewWnd,...)
Hopefully I’m explaining this well, to be sure here’s the use case:
- SDI style UI with multiple tabs for each section of the app
- User selects Tools tab (e.g. tab index 2)
- Tools "Start Page" wnd is displayed (attached to TabPage via normal PageInsert invocation)
- User selects Tool from list on Tools start page
- While Tools tab index 2 is still selected, the new Tool (e.g. the My Mail Tool) window is created and displayed as a child of the Tools tab
- The Tools start page wnd is replaced by the My Mail Tool window
- User interacts with My Mail Tool and then repeats Tool selection for N number of Tools by navigating back to Tools Start Page and selecting a new Tool
Thanks!