Professional UI Solutions
Site Map   /  Register


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 » CExtTabPageContainerWnd problem Collapse All
Subject Author Date
Offer Har Sep 2, 2008 - 10:44 AM


I added the following line to my CExtTabPageContainerWnd object so that it will have close buttons on all tabs:


m_tab.GetSafeTabWindow()->ModifyTabWndStyleEx(0, __ETWS_EX_CLOSE_ON_TABS);

This worked, and each tab have a close button, but clicking the close button does nothing...

Please fix, or give an alternative to activate this feature,



Offer Har Sep 17, 2008 - 1:41 PM

OK - thanks.

Technical Support Sep 17, 2008 - 12:25 PM

Yes, the close buttons do nothing in the case of a tab page container. This control does not know whether it should destroy tab pages or just hide them on "X" button click. You can override the CExtTabPageContainerWnd::OnTabWndClickedItemCloseButton() virtual method, optionally show any required message boxes and do what you need with the tab page.