if ActiveControl is xx then
begin
if ssCtrl in Shift then //鼠标滚动 驱动水平滚动条
begin
if WheelDelta < 0 then
SendMessage(Txx(ActiveControl).Handle,WM_HSCROLL,SB_LINERIGHT ,0)
else
SendMessage(Txx(ActiveControl).Handle,WM_HSCROLL,SB_LINELEFT ,0)
end
else begin //鼠标滚动 驱动垂直滚动条
if WheelDelta < 0 then
SendMessage(TVsFlexGrid(ActiveControl).Handle,WM_VSCROLL,SB_LINEDOWN ,0)
else
SendMessage(TVsFlexGrid(ActiveControl).Handle,WM_VSCROLL,SB_LINEUP ,0)
end;
end;
Handled:=true;