C++
afx_msg BOOL OnNotify_ToolTipText( UINT id, NMHDR * pNMHDR, LRESULT * pResult );
Description
This method processes TTN_NEEDTEXT notifications (for example, requests for Common Control ToolTip text). The default handler determines the control for which text is needed and queries the control for the type of tip supports. If the control requests a ToolTip then the text is obtained from the control. Finally, if the control acknowledges the text request and returns a non-empty string, then a ToolTip is displayed, presenting the text, and the routine returns TRUE. Otherwise, the method returns FALSE.
Parameters
Parameters | Description |
---|---|
id | Identifier of the control that sent the notification. Note that this parameter is not used; the control id is taken from the NMHDR structure. |
pNMHDR | Pointer to a NMHDR (actually a TOOLTIPTEXT) structure |
pResult | Pointer to result code, generally ignored by TTN_NEEDTEXT handlers |