Share

CAdUiOwnerDrawButton::OnDrawTipText

C++

virtual BOOL OnDrawTipText(
    CAdUiDrawTipText& dtt
);

Description

This routine is called to have the control paint the contents of a TextTip. The method is declared virtual for use by derived classes. The control has the option of drawing the text, altering the device context attributes, etc. If the routine returns TRUE then the caller assumes the request was completely handled. Otherwise if the routine returns FALSE then the caller proceeds with default processing and renders the text on its own.

By default, if m_tipItem is valid then the control will draw the text and return TRUE, otherwise the method just returns FALSE. The routine accounts for the selection state of the relevant item and adjusts the foreground and background colors appropriately.

Parameters

Parameters Description
dtt Reference to a CAdUiDrawTipText.

Links

CAdUiOwnerDrawButton Class

Was this information helpful?