消息截获啊,给你个思路<br> private<br> Procedure OnMouseWheel(Var Msg :TMsg;var Handled:Boolean);<br><br>Procedure TForm1.OnMouseWheel(Var Msg :TMsg;var Handled:Boolean);<br>begin<br> if Msg.message = WM_MouseWheel then<br> begin<br> if Msg.wParam > 0 then<br> begin<br> if DGTitle.Focused then<br> SendMessage(DGTitle.Handle,WM_KEYDOWN,VK_UP,0);<br> end<br> else<br> begin<br> if DGTitle.Focused then<br> SendMessage(DGTitle.Handle,WM_KEYDOWN,VK_DOWN,0);<br> end;<br> Handled:= false;//<br> end;<br>end;<br><br>procedure TForm1.FormCreate(Sender: TObject);<br>begin<br> Application.OnMessage:=OnMouseWheel; // 截获鼠标滚动事件<br>end;