Combobox Mouseover for Items
-
Hi, is there the possibility to get a MouseOver Event for Combobox Items? I want a bubble to pop up, when the users mousepointer is over a combobox item, so i would need the event, and the value of the item the mouse is over. Can someone help me? Thank you, Johannes
-
Hi, is there the possibility to get a MouseOver Event for Combobox Items? I want a bubble to pop up, when the users mousepointer is over a combobox item, so i would need the event, and the value of the item the mouse is over. Can someone help me? Thank you, Johannes
Have you called
EnableToolTips(TRUE)
? Do you have a handler forTTN_NEEDTEXTA
andTTN_NEEDTEXTW
?"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
Have you called
EnableToolTips(TRUE)
? Do you have a handler forTTN_NEEDTEXTA
andTTN_NEEDTEXTW
?"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
Thanks for you answer. I decided to use a control from codeguru.com (http://www.codeguru.com/cpp/controls/combobox/tooltips/article.php/c4949/). It works fine so far, but I have another Problem: I want to have a multiline ToolTip Text ("line1 \n line2"). I read that I have to call SetMaxTipWidth() from the CToolTipCtrl class. The Code of the codeguru control manipulates the ToolTip text in the function CTooltipListCtrl::OnToolTipText(...). TOOLTIPTEXTA* pTTTA = (TOOLTIPTEXTA*)pNMHDR; TOOLTIPTEXTW* pTTTW = (TOOLTIPTEXTW*)pNMHDR; if (pNMHDR->code == TTN_NEEDTEXTA) lstrcpyn(pTTTA->szText, sTipText, 80); else _mbstowcsz(pTTTW->szText, sTipText, 80); Can someone tell me how to get the CToolTipCtrl pointer in the CTooltipListCtrl class(derived FROM CListCtrl), to call it's SetMaxTipWidth() function to get a Multiline ToolTipText? Thanks for your help...