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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Tooltip on CHeaderCtrl of CListCtrl

Tooltip on CHeaderCtrl of CListCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestionannouncement
1 Posts 1 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.
  • V Offline
    V Offline
    Vancouver
    wrote on last edited by
    #1

    I work with a subclassed CListCtrl. Tooltips will be displayed on the individual subitems; it works as expected. I want to display tooltips on the header items as well. OnToolHitTest receives control, it sets the parameters, but OnToolTipText does not receive the control at all. OnToolTipText will be mapped by ON_NOTIFY(TTN_NEEDTEXTA, 0, On_ToolTipTextA) ON_NOTIFY(TTN_NEEDTEXTW, 0, On_ToolTipTextW) This should work for the CHeaderCtrl as well, should not it? Btw, if I set the text pointer in OnToolHitTest directly in TOOLINFO.lpszText, instead of setting LPSTR_TEXTCALLBACK, it won't be displayed either (though it won't be ignored either: if I set the address of a constant string, I get an error, when it will be tried to release). I did read about TTF_IDISHWND, etc. and tried all possible combinations, to no awail. What else do I have to consider?

    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