如,在DBGrid里面支持鼠标滚轮:<br>procedure TfrmMain.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 DBBasicInfo.Focused then<br> SendMessage(DBBasicInfo.Handle, WM_VSCROLL, SB_PAGEUP, 0);<br> end<br> else<br> begin<br> if DBBasicInfo.Focused then<br> SendMessage(DBBasicInfo.Handle, WM_VSCROLL, SB_PAGEDOWN, 0);<br> end;<br> Handled:= True;<br> end;<br>end;