Defines an application supplied callback function, which can define the ToolTip text when a ToolTip or ScrollTip is to be displayed.
C
BOOL WINAPI SftBox_SetToolTipsCallback(HWND hwndCtl, LPSFTBOX_TOOLTIPSPARM lpToolTips);C++
BOOL CSftBox::SetToolTipsCallback(LPSFTBOX_TOOLTIPSPARM lpToolTips);hwndCtl
The window handle of the combo box control.
lpToolTips
A pointer to a SFTBOX_TOOLTIPSPARM structure defining the callback function. Specify NULL to remove a previously defined callback function.
The return value is always TRUE.
The SetToolTipsCallback function defines an application supplied callback function, which can define the ToolTip text when a ToolTip or ScrollTip is to be displayed.
The callback function (see SFTBOX_TOOLTIPSPROC) is used for the dropdown portion and the static portion of the combo box. It receives the window handle of the combo box control and the UserData value of the SFTBOX_TOOLTIPSPARM structure. For a cell of the static portion, the callback receives the index of the selected item.
ToolTips are enabled for each column using the SFTBOX_TOOLTIP style in the SFTBOX_COLUMN structure member style. ScrollTips are enabled using SetScrollTips.
See Also C/C++ API | Categories | Notifications