CMFCOutlookBarTabCtrl Class
A tab control that has the visual appearance of the Navigation Pane in Microsoft Outlook.
class CMFCOutlookBarTabCtrl : public CMFCBaseTabCtrl
Members
Public Constructors
Name |
Description |
---|---|
CMFCOutlookBarTabCtrl::CMFCOutlookBarTabCtrl |
Default constructor. |
CMFCOutlookBarTabCtrl::~CMFCOutlookBarTabCtrl |
Destructor. |
Public Methods
Name |
Description |
---|---|
Adds a Windows control as a new tab in the Outlook bar. |
|
CMFCOutlookBarTabCtrl::CalcRectEdit |
Called by the framework to determine the dimensions of the edit box that appears when a user renames a tab. (Overrides CMFCBaseTabCtrl::CalcRectEdit.) |
Called by the framework during resizing operations to determine if fewer Outlook bar tab page buttons can be displayed than are currently visible. |
|
Called by the framework during resizing operations to determine if more Outlook bar tab page buttons can be displayed than are currently visible. |
|
Creates the Outlook bar tab control. |
|
CMFCOutlookBarTabCtrl::CreateObject |
Used by the framework to create a dynamic instance of this class type. |
Specifies whether the animation that occurs during the switch between active tabs is enabled. |
|
Specifies whether a user can modify the text labels on the tab buttons of the Outlook bar. (Overrides CMFCBaseTabCtrl::EnableInPlaceEdit.) |
|
Called by the framework to enable buttons that allow the user to scroll through buttons on the Outlook bar pane. |
|
CMFCOutlookBarTabCtrl::FindTargetWnd |
Identifies the pane that contains a specified point. (Overrides CMFCBaseTabCtrl::FindTargetWnd.) |
Returns the border size of the Outlook tab control. |
|
CMFCOutlookBarTabCtrl::GetTabArea |
Retrieves the size and position of the tab area of the tab control. (Overrides CMFCBaseTabCtrl::GetTabArea.) |
CMFCOutlookBarTabCtrl::GetThisClass |
Used by the framework to obtain a pointer to the CRuntimeClass object that is associated with this class type. |
|
|
Determines whether the animation that occurs during the switch between active tabs is enabled. |
|
Determines if the Outlook bar tab control is in a mode that emulates Microsoft Outlook 2003. |
|
CMFCOutlookBarTabCtrl::IsPtInTabArea |
Determines if a point is inside the tab area. (Overrides CMFCBaseTabCtrl::IsPtInTabArea.) |
CMFCOutlookBarTabCtrl::IsTabDetachable |
Determines whether a tab is detachable. (Overrides CMFCBaseTabCtrl::IsTabDetachable.) |
CMFCOutlookBarTabCtrl::OnChangeTabs |
Called by the framework when a tab is inserted or removed. (Overrides CMFCBaseTabCtrl::OnChangeTabs.) |
Called by the framework to decrease the number of tab page buttons that are visible. |
|
Called by the framework to increase the number of tab page buttons that are visible. |
|
Displays the Navigation Pane Options dialog. |
|
CMFCOutlookBarTabCtrl::RecalcLayout |
Recalculates the internal layout of the tab control. (Overrides CMFCBaseTabCtrl::RecalcLayout.) |
Sets the active tab. (Overrides CMFCBaseTabCtrl::SetActiveTab.) |
|
Sets the border size of the Outlook tab control. |
|
Sets the alignment of the text labels on the tab buttons of the Outlook bar. |
|
Sets the bitmap that contains the icons that are displayed on the bottom of the Outlook bar in Outlook 2003 mode (see CMFCOutlookBar Class). |
|
|
Remarks
To create an Outlook bar that has docking support, use a CMFCOutlookBar object to host the Outlook bar tab control. For more information, see CMFCOutlookBar Class.
Example
The following example demonstrates how to initialize a CMFCOutlookBarTabCtrl object and use various methods in the CMFCOutlookBarTabCtrl class. The example shows how to enable the in-place editing of the text label on the tab page buttons of the Outlook bar, enable the animation, enable scroll handles that enable the user to scroll through buttons on the Outlook bar pane, set the border size of the Outlook tab control, and set the alignment of the text labels on the tab buttons of the Outlook bar. This code snippet is part of the OutlookDemo Sample: MFC OutlookDemo Application.
// CMFCOutlookBar& bar
CMFCOutlookBarTabCtrl* pOutlookBar = (CMFCOutlookBarTabCtrl*)bar.GetUnderlyingWindow();
...
pOutlookBar->EnableInPlaceEdit(TRUE);
pOutlookBar->EnableAnimation();
pOutlookBar->EnableScrollButtons();
pOutlookBar->SetBorderSize(10);
pOutlookBar->SetPageButtonTextAlign(TA_LEFT);
Inheritance Hierarchy
Requirements
Header: afxoutlookbartabctrl.h