Bagikan melalui


CMFCToolTipCtrl::OnDrawIcon

Displays an icon in a tooltip.

virtual BOOL OnDrawIcon(
   CDC* pDC,
   CRect rectImage 
);

Parameters

  • [in] pDC
    A pointer to a device context.

  • [in] rectImage
    Coordinates of the icon.

Return Value

TRUE if the icon was drawn. Otherwise FALSE.

Remarks

Override this method in a derived class to display a custom icon. You must also override CMFCToolTipCtrl::GetIconSize to enable the tooltip to correctly calculate the layout of text and description.

Requirements

Header: afxToolTipCtrl.h

See Also

Reference

CMFCToolTipCtrl Class

Hierarchy Chart