CEdit中怎样能够获取鼠标拖动滚动条产生的事件?
“鼠标拖动滚动条”指用鼠标押下滚动条不抬起,上下移动,停止移动,这时得到滚动的事件。我是过了,能够得到鼠标单击的滚动事件,而得不到拖动时的事件,这时怎么回事呢?请大家指点一下。谢谢
“鼠标拖动滚动条”指用鼠标押下滚动条不抬起,上下移动,停止移动,这时得到滚动的事件。我是过了,能够得到鼠标单击的滚动事件,而得不到拖动时的事件,这时怎么回事呢?请大家指点一下。谢谢
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.
然后需要的时候用GetSel确定字符~
加油呵呵, 谢谢