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 General Discussion » Close button for Tab control in visual studio .net 2003 Collapse All
Subject Author Date
lucy kurian Jun 9, 2008 - 11:20 PM

hi,


could some one help me with the following?


i want to include a a common close button for each tab in the tab control.. how do i do it ?


is there any way i can remove a tab page from the collection and add the same tab page later on to the collection without creating a new one? i tried hiding the tab but that does not work..


all the above are in visual studio .net 2003.


Thanks.

Technical Support Jun 16, 2008 - 10:03 AM

Just apply the __ETWS_EX_CLOSE_ON_TABS style using the CExtTabWnd::ModifyTabWndStyle() method, then each tab item will have its own Close button. If you also apply __ETWS_EX_CLOSE_ON_SELECTED_ONLY, only the selected tab item will have the Close button.

In the DRAWCLI sample, the Close button is available in each tab item in its MDI tab window. So you can check this.

As for pages hiding, in version 2.50 we added PageVisibleSet/PageVisibleGet methods to the CExtTabPageContainerWnd class, with which you can show/hide pages in the tab page container.

Dimple Linda Jun 18, 2008 - 2:19 AM

Could u please tell me how i can add the styles mentioned above? how do i use CExtTabWnd::ModifyTabWndStyle() method to do the same .. and is it applicable for VIsual studio.net 2003?

Technical Support Jun 19, 2008 - 6:01 AM

This functionality doesn’t depend on the Visual Studio version where it is used. Having the CExtTabWnd object just invokes its ModifyTabWndStyle method:

m_wndTabs.ModifyTabWndStyle( ... );