Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to display the tooltip on drop-down list of a combobox using ctooltipctrl.

With ctooltipctrl I can able to display the tooltip for individual controls on a dialogu, but for ccombobox it is not working.

Could you please help me to resolve this issue.

What I have tried:

I have created combo class and list box class. In combo class I'm getting the listbox handle and calling the presubclasswindow of a listbox class using the listbox handle value.

In the presubclasswindow I have enabled the tooltips using enabletooltips (true). Created ontoolhittest to get the item row and handled tnn_needtext message is to get the tooltip text.

During runtime the ontoolhittest is getting called and row details are being fetched but the tnn_needtext is never been called.i have overide a function for tnn_needtext..how to get this notification workto display the tooltip
Posted
Comments
_Flaviu 26-Nov-18 3:04am    
You can find here a ready to go CComboBox class, including tooltip on combo items: https://www.codeproject.com/articles/187753/%2fArticles%2f187753%2fExtended-CComboBox
Member 10315365 26-Nov-18 3:29am    
i have used the tracking tool tips as menctioned 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 tooltip for combobox dropdown list using CtoolTipCtrl

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900