CEdit中怎样能够获取鼠标拖动滚动条产生的事件?
“鼠标拖动滚动条”指用鼠标押下滚动条不抬起,上下移动,停止移动,这时得到滚动的事件。我是过了,能够得到鼠标单击的滚动事件,而得不到拖动时的事件,这时怎么回事呢?请大家指点一下。谢谢

解决方案 »

  1.   

    在收到滚动条消息后,发送一个自定义消息给CEdit即可。
      

  2.   

    SB_THUMBPOSITION
    The user has dragged the scroll box (thumb) and released the mouse button. The high-order word indicates the position of the scroll box at the end of the drag operation.
    SB_THUMBTRACK
    The user is dragging the scroll box. This message is sent repeatedly until the user releases the mouse button. The high-order word indicates the position that the scroll box has been dragged to.
      

  3.   

    哦, 楼主可以试试如果鼠标左键按下后超过5毫秒以后才弹起 就算拖动~ 这样不就是一个拖动事件了?
    然后需要的时候用GetSel确定字符~ 
    加油呵呵, 谢谢