在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
//函数 function SetScreen(x,y: Word): Boolean; var DevMode: TDeviceMode; begin Result := EnumDisplaySettings(nil, 0, DevMode); if Result then begin DevMode.dmFields := DM_PELSWIDTH or DM_PELSHEIGHT; DevMode.dmPelsWidth := x; DevMode.dmPelsHeight := y; Result := ChangeDisplaySettings(DevMode, 0) = DISP_CHANGE_SUCCESSFUL; end; end; //测试 procedure TForm1.btn1Click(Sender: TObject); begin SetScreen(1024, 768); end; |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论