SEC3DTabWnd Class
class SEC3DTabWnd: public SECTabWndBase
The SEC3DTabWnd class implements a tab control with a three-dimensional look and feel (similar to Developer Studio’s Project Workspace window).
Defined in: tabwnd3.h
Comments
The 3-D tabs can be positioned on the top, bottom, left or right. The SEC3DTabWnd inherits its interface from SECTabWndBase and adds the implementation details that define its appearance.
Note: The top, left and right tab position styles are supported only by the 3-D tabs and these do not apply to the 2-D tabs.
A SEC3DTabWnd object can be embedded in any CWnd object. To create an SEC3DTabWnd object in a CFrameWnd, use the following steps:
1.Embed an SEC3DTabWnd member variable in the parent frame.
2.Override the parent frame's OnCreateClient member function.
3.From within the overridden OnCreateClient, call the Create member function of SEC3DTabWnd.
4.Call SEC3DTabWnd::AddTab at any time during the life of the tabbed window to create a CWnd or CView child window in the tabbed window.
See the TABDEMO sample in the \SAMPLES\TOOLKIT\STANDARD\TABS\TABDEMO directory for a demonstration of the SEC3DTabWnd class.
See Also
SECTabWndBase SEC3DTabControlSECWorkbook
Class Members
Constructors
todo Add a description
Initialization
virtual BOOL Create(CWnd* pParentWnd, DWORD dwStyle = WS_CHILD | WS_VISIBLE | TWS_TABS_ON_BOTTOM, UINT nID = AFX_IDW_PANE_FIRST)
todo Add a description
Operations
DWORD GetTabStyle() const
Gets tab style.
DWORD SetTabStyle(DWORD dwTabStyle)
Sets the tab style.
void EnableTab(CWnd* pWnd, BOOL bEnable = TRUE)
Enables/disables tab.
void EnableTab(int nIndex, BOOL bEnable = TRUE)
Enables/disables tab.
BOOL SetFontActiveTab(CFont* pFont,BOOL bRedraw=TRUE)
Sets an active tab's currrent font.
BOOL SetFontInactiveTab(CFont* pFont,BOOL bRedraw=TRUE)
Sets an inactive tab's currrent font.
CFont* GetFontActiveTab()
Gets the current font of an active tab.
CFont* GetFontInactiveTab()
Gets the current font of an inactive tab.
Attributes
BOOL IsTabEnabled(CWnd* pWnd)
Determines if tab is enabled or disabled.
BOOL IsTabEnabled(int nIndex)
Determines if tab is enabled or disabled.