procedure TForm1.ChangeSreenDisplay(x, y: Integer);
var
lpDevMode : TDeviceMode;
begin
EnumDisplaySettings(nil, 0, lpDevMode);
lpDevMode.dmFields:=DM_PELSWIDTH or DM_PELSHEIGHT or DM_DISPLAYFREQUENCY;
lpDevMode.dmPelsWidth:=x;
lpDevMode.dmPelsHeight:=y;
lpDevMode.dmDisplayFlags:=DM_DISPLAYFREQUENCY;
lpDevMode.dmDisplayFrequency:=85; //刷新频率
ChangeDisplaySettings(lpDevMode, CDS_UPDATEREGISTRY);
end;