procedure TForm1.ListBox1MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
keybd_event(vk_control,0,KEYEVENTF_KEYUP,0);
end;
procedure TForm1.ListBox1MouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
keybd_event(vk_control,0,0,0);
end;
//要加上下面的代码
procedure TForm1.FormMouseMove(Sender: TObject; Shift: TShiftState; X,
Y: Integer);
begin
keybd_event(vk_control,0,KEYEVENTF_KEYUP,0);
end;