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. TTN_NEEDTEXT never called

TTN_NEEDTEXT never called

Scheduled Pinned Locked Moved C / C++ / MFC
help
6 Posts 3 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.
  • A Offline
    A Offline
    Aviv Halperin
    wrote on last edited by
    #1

    I have a CDialog. I'm trying to implement tooltips for the edit controls of the dialog. I adde the code : ON_NOTIFY_EX_RANGE(TTN_NEEDTEXT,0,0xFFFF,OnToolTipNotify) in the message map and my function is : BOOL CPageCurrentLoop::OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult ) The problem is the OnToolTipNotify never gets called. Even if the mouse pointer is over CEdit controls of the dialog. Thanks. avivhal

    D H 2 Replies Last reply
    0
    • A Aviv Halperin

      I have a CDialog. I'm trying to implement tooltips for the edit controls of the dialog. I adde the code : ON_NOTIFY_EX_RANGE(TTN_NEEDTEXT,0,0xFFFF,OnToolTipNotify) in the message map and my function is : BOOL CPageCurrentLoop::OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult ) The problem is the OnToolTipNotify never gets called. Even if the mouse pointer is over CEdit controls of the dialog. Thanks. avivhal

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

      Has EnableToolTips() been called? You might need to use:

      ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify)
      ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify)

      Also make sure that no other control (e.g., group box) is obscuring the CEdit controls.


      "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

      A 1 Reply Last reply
      0
      • A Aviv Halperin

        I have a CDialog. I'm trying to implement tooltips for the edit controls of the dialog. I adde the code : ON_NOTIFY_EX_RANGE(TTN_NEEDTEXT,0,0xFFFF,OnToolTipNotify) in the message map and my function is : BOOL CPageCurrentLoop::OnToolTipNotify( UINT id, NMHDR * pNMHDR, LRESULT * pResult ) The problem is the OnToolTipNotify never gets called. Even if the mouse pointer is over CEdit controls of the dialog. Thanks. avivhal

        H Offline
        H Offline
        HENDRIK R
        wrote on last edited by
        #3

        Did you call EnableToolTips from within your dialog window?


        We are men. We are different. We have only one word for soap. We do not own candles. We have never seen anything of any value in a craft shop. We do not own magazines full of photographs of celebrities with their clothes on. - Steve

        1 Reply Last reply
        0
        • D David Crow

          Has EnableToolTips() been called? You might need to use:

          ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTW, 0, 0xFFFF, OnToolTipNotify)
          ON_NOTIFY_EX_RANGE(TTN_NEEDTEXTA, 0, 0xFFFF, OnToolTipNotify)

          Also make sure that no other control (e.g., group box) is obscuring the CEdit controls.


          "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

          A Offline
          A Offline
          Aviv Halperin
          wrote on last edited by
          #4

          I tried this and it does not help. I noticed that I dont get any wm_notify messages. I guess they are "kidnapped" somewhere along the way.. but where? avivhal

          D 1 Reply Last reply
          0
          • A Aviv Halperin

            I tried this and it does not help. I noticed that I dont get any wm_notify messages. I guess they are "kidnapped" somewhere along the way.. but where? avivhal

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

            Aviv Halperin wrote: I tried this and it does not help. Meaning that EnableToolTips() has been called and both entries are in the dialog's message map? How are you verifying that OnToolTipNotify() is not getting called?


            "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

            A 1 Reply Last reply
            0
            • D David Crow

              Aviv Halperin wrote: I tried this and it does not help. Meaning that EnableToolTips() has been called and both entries are in the dialog's message map? How are you verifying that OnToolTipNotify() is not getting called?


              "When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen

              A Offline
              A Offline
              Aviv Halperin
              wrote on last edited by
              #6

              Yes, EnableToolTips() has been called and both entries are in the dialog's message map. I tried putting a break point in the message handler in debug mode and never got to the break point. Then I tried with the spy++ to find out if any notify message is sent and non are sent. I have complex structure here that might be the reason: I have a dialog box with a tab control. The tab control has a few pages which are all implemented as child dialogs of the tab control. I'm trying to add tool tips to some of the controls of the tab pages dialogs. Thanks. avivhal

              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