Announcement

Collapse
No announcement yet.

How get mouse moment over richedit?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How get mouse moment over richedit?

    How do I get the mouse moment over my RICHEDIT control?

    -------------
    Thank you,
    Ryan M. Cross
    Head Webmaster Nofee Inc. Internet Services
    President Likuid Creations Ltd.

    Thank you,
    Ryan M. Cross

    #2
    In case you have subclassed it, you can catch the mouse movements
    in the editor's callback procedure, under %WM_MOUSEMOVE, like this:

    Code:
      SELECT CASE wMsg
        CASE %WM_MOUSEMOVE
          xPos& = LOWRD(lParam)
          yPos& = HIWRD(lParam)

    ------------------

    Comment


      #3
      If I'm not mistaken, you would have to subclass it.

      -- Eric

      ------------------
      Perfect Sync: Perfect Sync Development Tools
      Email: mailto:[email protected][email protected]</A>

      "Not my circus, not my monkeys."

      Comment


        #4
        I used DDT to make the richedit and i have it Call the Callback function, but it won't react to WM_MOUSEMOVE. What am i doing wrong?

        ------------------
        Thank you,
        Ryan M. Cross
        Head Webmaster Nofee Inc. Internet Services
        President Likuid Creations Ltd.

        Thank you,
        Ryan M. Cross

        Comment


          #5
          Ryan --

          Unfortunately, certain Windows controls do not pass all Windows messages to their callback functions. Certain messages are "trapped" by the control, and you never see them. In order to see them, you have to do something called sub-classing. It is the process of telling Windows to send all of a control's messages through your callback function before it processes them. It can really slow down an app, but sometimes Windows forces you to do it, when you need something unusual. I'm pretty sure that there is a sub-classing example in the Source Code forum...

          -- Eric


          ------------------
          Perfect Sync: Perfect Sync Development Tools
          Email: mailto:[email protected][email protected]</A>

          "Not my circus, not my monkeys."

          Comment

          Working...
          X
          😀
          🥰
          🤢
          😎
          😡
          👍
          👎