procedure TfrmIntro.WndProc(var message: Tmessage);
begin
if (message.Msg = WM_VSCROLL) and (message.WParamLo = SB_ENDSCROLL) then
showmessage('竖')
else
if (message.Msg = WM_HSCROLL) and (message.WParamLo = SB_ENDSCROLL) then
showmessage('横')
else
inherited WndProc(message);
end;