var l_Handle:THandle;<br> nPos:LongWord;<br> Point:TPoint;<br>begin<br> GetCursorPos(Point); // 获取鼠标Point<br> l_Handle := FindWindow(nil,pChar(Edit1.Text)); // 找到外部要接收鼠标滚动的窗口句柄。<br> Windows.ScreenToClient(l_Handle,Point); // 转换屏幕鼠标坐标到窗口坐标。<br> nPos := Point.X or (Point.Y shl 16); // 组合鼠标坐标<br> SendMessage(l_Handle,WM_MOUSEWHEEL,$ffe00000,nPos); // 向其他窗口发送鼠标向前滚动消息。<br>end;