description | title | ms.date | f1_keywords | helpviewer_keywords | ms.assetid | ||
---|---|---|---|---|---|---|---|
Learn more about: CMFCTabToolTipInfo Structure |
CMFCTabToolTipInfo Structure |
11/04/2016 |
|
|
9c3b3fb9-1497-4d59-932b-0da9348dd5e2 |
This structure provides information about the MDI tab that the user is hovering over.
struct CMFCTabToolTipInfo
Name | Description |
---|---|
CMFCTabToolTipInfo::m_nTabIndex | Specifies the index of the tab control. |
CMFCTabToolTipInfo::m_pTabWnd | A pointer to the tab control. |
CMFCTabToolTipInfo::m_strText | The tooltip text. |
A pointer to a CMFCTabToolTipInfo
structure is passed as a parameter of the AFX_WM_ON_GET_TAB_TOOLTIP message. This message is generated when MDI tabs are enabled and the user hovers over a tab control.
The following example shows how CMFCTabToolTipInfo
is used in the MDITabsDemo Sample: MFC Tabbed MDI Application.
[!code-cppNVC_MFC_MDITabsDemo#2]
Header: afxbasetabctrl.h
Specifies the index of the tab control.
int m_nTabIndex;
Index of the tab over which the user is hovering.
The following example shows how m_nTabIndex
is used in the MDITabsDemo Sample: MFC Tabbed MDI Application.
[!code-cppNVC_MFC_MDITabsDemo#2]
A pointer to the tab control.
CMFCBaseTabCtrl* m_pTabWnd;
The following example shows how m_pTabWnd
is used in the MDITabsDemo Sample: MFC Tabbed MDI Application.
[!code-cppNVC_MFC_MDITabsDemo#2]
The tooltip text.
CString m_strText;
If the string is empty, the tooltip is not displayed.
The following example shows how m_strText
is used in the MDITabsDemo Sample: MFC Tabbed MDI Application.
[!code-cppNVC_MFC_MDITabsDemo#2]