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 » Question CExtTabMdiOneNoteWnd Collapse All
Subject Author Date
tera t Mar 25, 2008 - 11:28 PM

Hello.



In Drawcl2, I want to display an X.

In Drawcl1, I do not want to display an X.

Please teach a method.

Thanks,


 

tera t Mar 28, 2008 - 1:58 AM

Hello.


Only specific CMDIChildWnd does not want to display a closing button.

Please teach a way. 


Thanks, 


 

Technical Support Mar 31, 2008 - 5:51 AM

You can enable a Close button on each tab for the MDI tab window and then apply the __ETWI_EX_NO_CLOSE_ON_TAB style by invoking the CExtTabWnd::TAB_ITEM_INFO::ModifyItemStyle() method only for those tab items which should not display a Close buttons. This is applied both to simple tab controls and MDI tab controls of any style.

Technical Support Mar 27, 2008 - 5:31 AM

If you 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.