Display tooltip for each listbox item on combobox using ctooltipctrl
-
I have tried implementing the tooltip using ctooltipctrl for drop-down list items on a combobox. Have created one combo class to get the combo box handle and list box handle value. From combobox I have called the presubclasswindow method of listbox and enabled tooltips using enabletooltips(true) and inside the list box class I override the ontoolhittest to get the row and rect area. After this tnn_needtext notification has to be triggered to get the tooltip value.but in my case it is not getting triggered. Please help me to solve this issue. For the individual controls on dialogu box the tnn_needtext is getting triggered.
-
I have tried implementing the tooltip using ctooltipctrl for drop-down list items on a combobox. Have created one combo class to get the combo box handle and list box handle value. From combobox I have called the presubclasswindow method of listbox and enabled tooltips using enabletooltips(true) and inside the list box class I override the ontoolhittest to get the row and rect area. After this tnn_needtext notification has to be triggered to get the tooltip value.but in my case it is not getting triggered. Please help me to solve this issue. For the individual controls on dialogu box the tnn_needtext is getting triggered.
I had the same problem last week! :) I can confirm the problem with tnn_needtext notification. You should use the tracking tooltips instead! Have a look at the article [XTipComboBox - Display tooltips for combobox](https://www.codeproject.com/Articles/4438/XTipComboBox-Display-tooltips-for-combobox) .
-
I have tried implementing the tooltip using ctooltipctrl for drop-down list items on a combobox. Have created one combo class to get the combo box handle and list box handle value. From combobox I have called the presubclasswindow method of listbox and enabled tooltips using enabletooltips(true) and inside the list box class I override the ontoolhittest to get the row and rect area. After this tnn_needtext notification has to be triggered to get the tooltip value.but in my case it is not getting triggered. Please help me to solve this issue. For the individual controls on dialogu box the tnn_needtext is getting triggered.
-
i have used the tracking tool tips as mentioned in the provided link and it is working as expected. As per my project requirement i have to use CToolTipctrl to implement the tooltip for ComboBox. My question is can we implement tool-tip for combobox drop-down list using CtoolTipCtrl
-
I had the same problem last week! :) I can confirm the problem with tnn_needtext notification. You should use the tracking tooltips instead! Have a look at the article [XTipComboBox - Display tooltips for combobox](https://www.codeproject.com/Articles/4438/XTipComboBox-Display-tooltips-for-combobox) .
With the tracking tool tips the tooltip is getting displayed for each drop-down list item. Cant we implement the same tool tip functionality using CToolTipctrl. I have tried all the possible scenarios to implement using ctooltipctrl, but it is not working for combo box. Except for Combo box the remaining controls i.e. listbox and other controls the Ctooltipctrl is working. For combo box only we are not getting the TNN_NeedText notification
-
With the tracking tool tips the tooltip is getting displayed for each drop-down list item. Cant we implement the same tool tip functionality using CToolTipctrl. I have tried all the possible scenarios to implement using ctooltipctrl, but it is not working for combo box. Except for Combo box the remaining controls i.e. listbox and other controls the Ctooltipctrl is working. For combo box only we are not getting the TNN_NeedText notification
Well, the problem with "not getting TNN_NeedText" for the listbox appears to be because this listbox's parent is neither dialog nor combobox window. Instead it is a desktop! However, TNN_NeedText like the other notifications are sent with WM_NOTIFY to the parent window.
-
i have used the tracking tool tips as mentioned in the provided link and it is working as expected. As per my project requirement i have to use CToolTipctrl to implement the tooltip for ComboBox. My question is can we implement tool-tip for combobox drop-down list using CtoolTipCtrl
-
Well, the problem with "not getting TNN_NeedText" for the listbox appears to be because this listbox's parent is neither dialog nor combobox window. Instead it is a desktop! However, TNN_NeedText like the other notifications are sent with WM_NOTIFY to the parent window.
Thanks victor for the providing the much needed answer :) is there any other possibility to overcome this issue by using any other methods like setting the parent window as combo-box for dropdown list using setparent() mfc method.