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 » CExtTabWnd Collapse All
Subject Author Date
Francesc Gonzalez Sep 6, 2005 - 11:01 AM

Hello,


I would like to know if there is a guideline or sort of, about how to replace an existing implementation of the mfc CTabCtrl (not on dialog but on a CWnd) to the CExtTabWnd.


Thank you, any help appreciated.


 

Technical Support Sep 6, 2005 - 1:12 PM

The tab common control (and the corresponding CTabCtrl MFC class) is a kind of control with a "hole" inside, which is an unpainted area of the tab window and it is left for other controls at the same sibling level as the tab common control. The tab common control does not manage any child controls or page windows. There is no such control in Prof-UIS. The CExtTabWnd window (and CExtTabOneNoteWnd, CExtTabWhidbeyWnd and CExtTabFlatWnd, which are derived from it) is a control that works like a horizontal line or a vertical column with tab items. The CExtTabWnd class is not a replacement for the MFC’s CTabCtrl class and even it is not derived from it. So, there is no point to simply replace the CTabCtrl class with CExtTabWnd. Prof-UIS provides you with a tab page container control implemented in the CExtTabPageContainerWnd class (and CExtTabPageContainerOneNoteWnd, CExtTabPageContainerWhidbeyWnd and CExtTabPageContainerFlatWnd, which are derived form it). This control is a container window for several page windows (usually dialogs) and it uses the Prof-UIS tab window for switching the active page window. We guess the tab page container can meet your requirements. You can find it in the TabPages and ProfUIS_Controls sample applications. Of course, we can help you implement our tab page container control in your project if you send provide us with more details or send us a project.

Francesc Gonzalez Sep 7, 2005 - 2:46 AM

Thank you very much for your quick answer.


CExtTabPageContainerWnd implemented and working fine.


In a "AdjustRect" equivalent method used the protected member m_pWndTab, and for "OnSelChange" used the (undocumented) virtual function OnTabWndSelectionChange.


Hope this is not unwise.


 

Technical Support Sep 7, 2005 - 1:42 PM

It’s our fault that we missed to document a set if overrides of the CExtTabWnd class. This will be fixed in the next release.