procedure TForm1.OnMouseWheel(Var Msg :TMsg;var Handled:Boolean);
begin
if Msg.message = WM_MouseWheel then
begin
if Msg.wParam > 0 then
begin
SendMessage(ScrollBox1.Handle,wm_VScroll,sb_LineUp,0);
end
else
begin
SendMessage(ScrollBox1.Handle,wm_VScroll,sb_LineDown,0);
end;
Handled:= True;
end;
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
Application.OnMessage:=OnMouseWheel;
end;