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 on each tab (SDI application) Collapse All
Subject Author Date
Julien Garcia Nov 17, 2010 - 10:04 AM

Hello,



Is it possible to show a "close button" on each tab of a CExtTabPageContainerWhidbeyWnd (or more generally a CExtTabPageContainerWnd), in a SDI application.



The flag " __ETWS_EX_CLOSE_ON_TABS" seems to work only on MDI application ...



What I have done :



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



My "m_TabPage" control is a derived object from CExtTabPageContainerWhidbeyWnd .



Thanks in advance for any help!



 PS :  Writing the following lines will show a general "close button" for all the tabs, but not an "individual" close button for each tab.



    m_TabPage.EnabledBtnCloseSet(true);

    m_TabPage.ShowBtnCloseSet(true);

Julien Garcia Nov 19, 2010 - 8:07 AM

Hello,


Thank you for your reply.


You can close this ticket, my problem is solved. My program is linked statically with MFC and I did not include into my .rc2 :


#if (!(defined _AFXDLL && !defined __STATPROFUIS_WITH_DLLMFC__) )

    #include <Resources/Resource.rc>

#endif


 Now, all is working fine !

Technical Support Nov 17, 2010 - 12:26 PM

The __ETWS_EX_CLOSE_ON_TABS extended tab window style works for any kind of tab windows: standing alone tabs, MDI tabs and tabs inside tab page containers. You can see the in-tab X-buttons on the Tab Containers dialog page in the <span class="newgreen">ProfUIS_Controls</b> sample application. We suspect there must be some other conditions specific for your app which does not allow the tab window to show in-tab X-buttons. Could you create some simplest possible test project containing tab page container from your project and send it to us?