共用方式為


CBaseTabbedPane Class

Extends the functionality of the CDockablePane Class to support the creation of tabbed windows.

class CBaseTabbedPane : public CDockablePane

Members

Public Constructors

Name

Description

CBaseTabbedPane::CBaseTabbedPane

Default constructor.

Public Methods

Name

Description

CBaseTabbedPane::AddTab

Adds a new tab to a tabbed pane.

CBaseTabbedPane::AllowDestroyEmptyTabbedPane

Specifies whether an empty tabbed pane can be destroyed.

CBaseTabbedPane::ApplyRestoredTabInfo

Applies tab settings, which are loaded from the registry, to a tabbed pane.

CBaseTabbedPane::CanFloat

Determines whether the pane can float. (Overrides CBasePane::CanFloat.)

CBaseTabbedPane::CanSetCaptionTextToTabName

Determines whether the caption for the tabbed pane should display the same text as the active tab.

CBaseTabbedPane::ConvertToTabbedDocument

  (Overrides CDockablePane::ConvertToTabbedDocument.)

CBaseTabbedPane::DetachPane

Converts one or more dockable panes to MDI tabbed documents.

CBaseTabbedPane::EnableSetCaptionTextToTabName

Enables or disables the ability of the tabbed pane to synchronize caption text with the label text on the active tab.

CBaseTabbedPane::FillDefaultTabsOrderArray

Restores the internal tab order to a default state.

CBaseTabbedPane::FindBarByTabNumber

Returns a pane that resides in a tab when the tab is identified by a zero-based tab index.

CBaseTabbedPane::FindPaneByID

Returns a pane that is identified by the pane ID.

CBaseTabbedPane::FloatTab

Floats a pane, but only if the pane currently resides in a detachable tab.

CBaseTabbedPane::GetDefaultTabsOrder

Returns the default order of tabs in the pane.

CBaseTabbedPane::GetFirstVisibleTab

Retrieves a pointer to the first displayed tab.

CBaseTabbedPane::GetMinSize

Retrieves the minimum allowed size for the pane. (Overrides CPane::GetMinSize.)

CBaseTabbedPane::GetPaneIcon

Returns a handle to the pane icon. (Overrides CBasePane::GetPaneIcon.)

CBaseTabbedPane::GetPaneList

Returns a list of panes that are contained in the tabbed pane.

CBaseTabbedPane::GetTabArea

Returns the bounding rectangles for the top and bottom tab areas.

CBaseTabbedPane::GetTabsNum

Returns the count of tabs in a tab window.

CBaseTabbedPane::GetUnderlyingWindow

Gets the underlying (wrapped) tab window.

CBaseTabbedPane::GetVisibleTabsNum

Returns the count of displayed tabs.

CBaseTabbedPane::HasAutoHideMode

Determines whether the tabbed pane can be switched to auto-hide mode.

CBaseTabbedPane::IsHideSingleTab

Determines whether the tabbed pane is hidden if only one tab is displayed.

CBaseTabbedPane::LoadSiblingPaneIDs

Used internally during serialization.

CBaseTabbedPane::RecalcLayout

Recalculates layout information for the pane. (Overrides CPane::RecalcLayout.)

CBaseTabbedPane::RemovePane

Removes a pane from the tabbed pane.

CBaseTabbedPane::SaveSiblingBarIDs

Used internally during serialization.

CBaseTabbedPane::Serialize

(Overrides CDockablePane::Serialize.)

CBaseTabbedPane::SerializeTabWindow

Used internally during serialization.

CBaseTabbedPane::SetAutoDestroy

Determines whether the tabbed control bar will be destroyed automatically.

CBaseTabbedPane::SetAutoHideMode

Toggles the docking pane between displayed and auto-hide mode. (Overrides CDockablePane::SetAutoHideMode.)

CBaseTabbedPane::ShowTab

Shows or hides a tab.

Remarks

This class is an abstract class and cannot be instantiated. It implements the services that are common to all kinds of tabbed panes.

Currently, the library includes two derived tabbed pane classes: CTabbedPane Class and CMFCOutlookBar Class.

A CBaseTabbedPane object wraps a pointer to a CMFCBaseTabCtrl Class object. CMFCBaseTabCtrl Class then becomes a child window of the tabbed pane.

For more information about how to create tabbed panes, see CDockablePane Class, CTabbedPane Class, and CMFCOutlookBar Class.

Inheritance Hierarchy

CObject

   CCmdTarget

      CWnd

         CBasePane

            CPane

               CDockablePane

                  CBaseTabbedPane

Requirements

Header: afxBaseTabbedPane.h

See Also

Reference

Hierarchy Chart

CDockablePane Class

Other Resources

MFC Classes