Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » PageInsert in CExtTabPageContainerWnd Collapse All
Subject Author Date
Debabrata Mukherjee Aug 22, 2007 - 9:35 AM

I have a CView which gets automatically updated with new windows if we add new sinks. But now I want to insert them as pages to a PageContainer, The name of my view is m_pPresView.

I do it like this. The m_pChildView is the tabpagecontainer.

m_pChildView ->PageInsert (m_pPresView->GetSafeHwnd(),strStepName);

What s happening here is my m_pPresView is getting added to the last added tab. What I want instead is to add tabs in the m_pChildView as separate instances of m_pPresView, instead of new tab pages overwriting the contants of my tabbed view.

Please suggest.

Debabrata Mukherjee Aug 22, 2007 - 9:37 AM

sorry for three similar postings.

Technical Support Aug 22, 2007 - 12:33 PM

We guess you should remove the previously added page(s) by invoking of the CExtTabPageContainerWnd::PageRemove() method and then insert new pages at the same location (page index).