Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Combobox Mouseover for Items

Combobox Mouseover for Items

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Joschwenk666
    wrote on last edited by
    #1

    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

    D 1 Reply Last reply
    0
    • J Joschwenk666

      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

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Have you called EnableToolTips(TRUE)? Do you have a handler for TTN_NEEDTEXTA and TTN_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

      J 1 Reply Last reply
      0
      • D David Crow

        Have you called EnableToolTips(TRUE)? Do you have a handler for TTN_NEEDTEXTA and TTN_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

        J Offline
        J Offline
        Joschwenk666
        wrote on last edited by
        #3

        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...

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups