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. Tool tip problem

Tool tip problem

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
2 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.
  • L Offline
    L Offline
    lisoft
    wrote on last edited by
    #1

    I want to use tool tips in my listview window, so I followed instruction described in MSDN to add EnableToolTips() in the class initializing code. But something strange is that there is no TTN_NEEDTEXT sent from the control. I use the following code to check if there is any TTN_NEEDTEXT notification message: BOOL CMotorolaView::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { NMHDR * pNmhdr=(NMHDR*)lParam; if (pNmhdr->code==TTN_NEEDTEXT) TRACE0("Got TTN_NEEDTEXT message"); return FALSE; } Can anyone tell me is there anything wrong with my code?

    Lisoft

    L 1 Reply Last reply
    0
    • L lisoft

      I want to use tool tips in my listview window, so I followed instruction described in MSDN to add EnableToolTips() in the class initializing code. But something strange is that there is no TTN_NEEDTEXT sent from the control. I use the following code to check if there is any TTN_NEEDTEXT notification message: BOOL CMotorolaView::OnNotify(WPARAM wParam, LPARAM lParam, LRESULT* pResult) { NMHDR * pNmhdr=(NMHDR*)lParam; if (pNmhdr->code==TTN_NEEDTEXT) TRACE0("Got TTN_NEEDTEXT message"); return FALSE; } Can anyone tell me is there anything wrong with my code?

      Lisoft

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      lisoft wrote: TTN_NEEDTEXT sent from the control. Have you set the control to send the notify message? Notify = TRUE in the resource editor? Artificial intelligence is no match for natural stupidity. Never argue with an idiot. They will drag you down to their level where they are an expert.

      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