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. Question About CToolTipCtrl

Question About CToolTipCtrl

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingjsonquestion
8 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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi I have some question about the class. I would like to use it on My CRichEditctrl where the source code is for my debugger. There are CWnd members in a number of the methods in the class would that in my case be the CrichEditCtrl in Addition the HiTest api which has a CPoint member is that point relative to (in my case) the CRichEditCtrl Thanks

    V 1 Reply Last reply
    0
    • F ForNow

      Hi I have some question about the class. I would like to use it on My CRichEditctrl where the source code is for my debugger. There are CWnd members in a number of the methods in the class would that in my case be the CrichEditCtrl in Addition the HiTest api which has a CPoint member is that point relative to (in my case) the CRichEditCtrl Thanks

      V Offline
      V Offline
      Victor Nijegorodov
      wrote on last edited by
      #2

      Umm, could you formulate your question(s) a bit more clear?

      F 1 Reply Last reply
      0
      • V Victor Nijegorodov

        Umm, could you formulate your question(s) a bit more clear?

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        I’ll ask a more specific question the create api of the CtooltipCtrl class has 2 parameters CWnd and dwstyle I would like to use it in my derived CrichEditctrl class whose parent is a CDialog should the Cwnd be the CRichEditrl or The CDialog Thanks

        V 1 Reply Last reply
        0
        • F ForNow

          I’ll ask a more specific question the create api of the CtooltipCtrl class has 2 parameters CWnd and dwstyle I would like to use it in my derived CrichEditctrl class whose parent is a CDialog should the Cwnd be the CRichEditrl or The CDialog Thanks

          V Offline
          V Offline
          Victor Nijegorodov
          wrote on last edited by
          #4

          It depends upon what and how are you going to display tooltips for your control. If it would be some text for the whole control then pass the CDialog CWnd* (in this case you will handle the TTN_NEEDTEXT notification in the dialog class). If the tooltip text would depend on some position or some content within the controls then it could be better passing the control CWnd* (then you will handle the TTN_NEEDTEXT notification in the control's class).

          F 1 Reply Last reply
          0
          • V Victor Nijegorodov

            It depends upon what and how are you going to display tooltips for your control. If it would be some text for the whole control then pass the CDialog CWnd* (in this case you will handle the TTN_NEEDTEXT notification in the dialog class). If the tooltip text would depend on some position or some content within the controls then it could be better passing the control CWnd* (then you will handle the TTN_NEEDTEXT notification in the control's class).

            F Offline
            F Offline
            ForNow
            wrote on last edited by
            #5

            Maybe its best if I used as an example if I have the following text in my CrichEditctrl D203 B11A 801C 0011A 0001C MVC FIELDA,FILEDB and I however the mouse over FIELDB which has a value of X'00000003' I would like the tool tip control to display it much like the visual studio debugger Hope this makes sense thanks

            V 2 Replies Last reply
            0
            • F ForNow

              Maybe its best if I used as an example if I have the following text in my CrichEditctrl D203 B11A 801C 0011A 0001C MVC FIELDA,FILEDB and I however the mouse over FIELDB which has a value of X'00000003' I would like the tool tip control to display it much like the visual studio debugger Hope this makes sense thanks

              V Offline
              V Offline
              Victor Nijegorodov
              wrote on last edited by
              #6

              Then you should create the tooltip control within your CrichEditctrl class passing the CrichEditctrl CWnd* as the parent. Then you would have to implement some handling (the mouse move - ?) procedure to determine what text is to be displayed in tooltip. If the will be some (new!) text then use the following CToolTipCtrlmethods: UpdateTipText TrackPosition TrackActivate

              1 Reply Last reply
              0
              • F ForNow

                Maybe its best if I used as an example if I have the following text in my CrichEditctrl D203 B11A 801C 0011A 0001C MVC FIELDA,FILEDB and I however the mouse over FIELDB which has a value of X'00000003' I would like the tool tip control to display it much like the visual studio debugger Hope this makes sense thanks

                V Offline
                V Offline
                Victor Nijegorodov
                wrote on last edited by
                #7

                This article with a code and example would be a good start: [XTipComboBox - Display tooltips for combobox](https://www.codeproject.com/Articles/4438/XTipComboBox-Display-tooltips-for-combobox)

                F 1 Reply Last reply
                0
                • V Victor Nijegorodov

                  This article with a code and example would be a good start: [XTipComboBox - Display tooltips for combobox](https://www.codeproject.com/Articles/4438/XTipComboBox-Display-tooltips-for-combobox)

                  F Offline
                  F Offline
                  ForNow
                  wrote on last edited by
                  #8

                  THANK YOU

                  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