CMFCToolTipInfo Class
Stores information about the visual appearance of tooltips.
class CMFCToolTipInfo
Members
Public Methods
Name |
Description |
---|---|
|
Data Members
Name |
Description |
---|---|
A Boolean variable that indicates whether the tooltip has a balloon appearance. |
|
A Boolean variable that indicates whether tooltip labels are displayed in a bold font. |
|
A Boolean variable that indicates whether the tooltip contains a description. |
|
A Boolean variable that indicates whether the tooltip contains an icon. |
|
A Boolean variable that indicates whether a separator is displayed between the tooltip label and the tooltip description. |
|
A Boolean variable that indicates whether the tooltip has rounded corners. |
|
A Boolean variable that indicates whether the appearance of the tooltip should be controlled by a visual manager (see CMFCVisualManager Class). |
|
The color of the tooltip border. |
|
The color of the tooltip background. |
|
The color of the gradient fill in the tooltip. |
|
The text color in the tooltip. |
|
The angle of the gradient fill in the tooltip. |
|
The maximum possible width, in pixels, of the description in the tooltip. |
Remarks
Use CMFCToolTipCtrl Class, CMFCToolTipInfo, and CTooltipManager Class together to implement customized tooltips in your application. For an example of how to use these tooltip classes, see the CMFCToolTipCtrl Class topic.
Example
The following example demonstrates how to set the values of the various member variables in the CMFCToolTipInfo class.
CMFCToolTipInfo* params = new CMFCToolTipInfo();
params->m_bBoldLabel = FALSE;
params->m_bDrawDescription = FALSE;
params->m_bDrawIcon = FALSE;
params->m_bRoundedCorners = TRUE;
params->m_bDrawSeparator = FALSE;
params->m_clrFill = RGB (255, 255, 255);
params->m_clrFillGradient = RGB (228, 228, 240);
params->m_clrText = RGB (61, 83, 80);
params->m_clrBorder = RGB (144, 149, 168);
Inheritance Hierarchy
Requirements
Header: afxtooltipctrl.h