CMFCToolTipInfo Class

Stores information about the visual appearance of tooltips.

class CMFCToolTipInfo

Members

Public Methods

Name

Description

CMFCToolTipInfo::operator=

 

Data Members

Name

Description

CMFCToolTipInfo::m_bBalloonTooltip

A Boolean variable that indicates whether the tooltip has a balloon appearance.

CMFCToolTipInfo::m_bBoldLabel

A Boolean variable that indicates whether tooltip labels are displayed in a bold font.

CMFCToolTipInfo::m_bDrawDescription

A Boolean variable that indicates whether the tooltip contains a description.

CMFCToolTipInfo::m_bDrawIcon

A Boolean variable that indicates whether the tooltip contains an icon.

CMFCToolTipInfo::m_bDrawSeparator

A Boolean variable that indicates whether a separator is displayed between the tooltip label and the tooltip description.

CMFCToolTipInfo::m_bRoundedCorners

A Boolean variable that indicates whether the tooltip has rounded corners.

CMFCToolTipInfo::m_bVislManagerTheme

A Boolean variable that indicates whether the appearance of the tooltip should be controlled by a visual manager (see CMFCVisualManager Class).

CMFCToolTipInfo::m_clrBorder

The color of the tooltip border.

CMFCToolTipInfo::m_clrFill

The color of the tooltip background.

CMFCToolTipInfo::m_clrFillGradient

The color of the gradient fill in the tooltip.

CMFCToolTipInfo::m_clrText

The text color in the tooltip.

CMFCToolTipInfo::m_nGradientAngle

The angle of the gradient fill in the tooltip.

CMFCToolTipInfo::m_nMaxDescrWidth

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

CMFCToolTipInfo

Requirements

Header: afxtooltipctrl.h

See Also

Reference

Hierarchy Chart

CTooltipManager Class

CMFCToolTipCtrl Class

Other Resources

MFC Classes