把TImage放进Panel1,[red]Image1.Enabled:=false;[/red]
procedure TForm1.Panel1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if Button = mbLeft then
begin
ReleaseCapture;
TControl(Sender).perform(WM_SysCommand, $F012, 0);
end;
end;