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 » CExtTabMdiWhidbeyWnd and tab caption Collapse All
Subject Author Date
Halfdom LCap Oct 15, 2009 - 4:23 PM

Hi,


I ’m trying to use CExtTabMdiWhidbeyWnd under structure of single-document template and multi-view.


I want to set each tab caption different. But the result is like this


|| Name1 || Name1 || Name1 || Name1 ||


How can I change the tab caption after creation?


 

Halfdom LCap Oct 21, 2009 - 12:53 PM

First time,  I used CExtTabMdiWhidbeyWnd.


The problem was solved by "OnTabWndQueryItemText".

Technical Support Oct 16, 2009 - 1:36 AM

Prof-UIS contains five types if tab and tab-based controls:

1) The basic tab windows. They are the single or multiple line tab controls displaying a list of tab items in one or more rows/columns: CExtTabWnd, CExtTabWhidbeyWnd, CExtTabFlatWnd, CExtTabButtonsWnd and CExtTabOneNoteWnd. Your application us completely responsible for managing the set of tab items displayed by these basic tab windows. These classes are implementing the generic tab controls simply displaying tab items using different styles. The CExtTabWnd class is based on the currently installed Prof-UIS paint manager. Other classes are implementing tab controls which have a look independent from Prof-UIS paint manager. The Tab Control dialog page in the ProfUIS_Controls sample application is dedicated to the basic tab controls.

2) MDI tab controls. They are based on the basic tab controls (1) displayed in the previous paragraph: CExtTabMdiWnd, CExtTabMdiWhidbeyWnd, CExtTabMdiFlatWnd, CExtTabMdiButtonsWnd and CExtTabMdiOneNoteWnd. These MDI tab controls must be created as children of the MFC’s CMDIFrameWnd class only. Your application should never try to insert tab items into these controls. They are automatically managing their tab items and each tab item is corresponding to the MDI child frame window created inside the MDI main frame window. The MDI tab controls should not be created inside the MFC SDI frame windows. For example, the DRAWCLI sample application is based on the MFC’s MDI document/view interface and it uses the CExtTabMdiOneNoteWnd MDI tabs control.

3) The tab page containers. The tab page container control is the single window which contains several page windows inside it and only one page window is visible. Additionally the tab page container window has one more constantly visible window inside it: the tab control(1) which is used for selecting the currently visible page window. The tab page containers are the following classes: CExtTabPageContainerWnd, CExtTabPageContainerWhidbeyWnd, CExtTabPageContainerFlatWnd, CExtTabPageContainerButtonsWnd and CExtTabPageContainerneNoteWnd. The Tab Containers dialog page in the ProfUIS_Controls sample application is dedicated to the tab page container controls.

4) The tabbed toolbar controls. The tabbed toolbar is the toolbar like looking and tab page container like looking control at the same time. The tabbed toolbar contains the tab page container control (3) which contains the CExtToolControlBar windows as tab pages. The tabbed toolbar controls are the following classes: CExtTabbedToolControlBar, CExtTabbedToolControlBarButtons, CExtTabbedToolControlBarFlat, CExtTabbedToolControlBarWhidbey and CExtTabbedToolControlBarOneNote. The TabbedBars sample application is dedicated to the tabbed toolbars.

5) The dynamic tabbed groups of resizable control bars (CExtControlBar). The resizable control bar (CExtControlBar) implements the Visual Studio .NET / Visual Studio 2005 / Visual Studio 2008 - like dockable panel. These dockable panels can be organized in to a tabbed groups. The ProfStudio sample application contains ~50 control bars and many of them are organized into tabbed groups.

Your question is mainly related to the CExtTabMdi*** classes (2) and they cannot be created inside the SDI frame windows (the MFC’s CFrameWnd class). The MDI frames can be created inside MDI frame windows only (the MFC’s CMDIFrameWnd class). Please choose which one of the tabbed controls provided by Prof-UIS do you really need. If your main frame window is SDI frame (CFrameWnd) then you can create the tab page container window (3) instead of the main SDI view window (the SimpleGrids sample application does this).