Bagikan melalui


CMFCToolTipCtrl::OnDrawLabel

Draws the label of a tooltip, or calculates the size of the label.

virtual CSize OnDrawLabel(
   CDC* pDC,
   CRect rect,
   BOOL bCalcOnly 
);

Parameters

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

  • [in] rect
    Bounding rectangle of the label area.

  • [in] bCalcOnly
    If TRUE, the label will not be drawn.

Return Value

Size of the label, in pixels.

Remarks

Override this method in a derived class if you want to customize the appearance of the tooltip label.

Requirements

Header: afxToolTipCtrl.h

See Also

Reference

CMFCToolTipCtrl Class

Hierarchy Chart