本文整理自网络,侵删。
有两种方法可以确定屏幕的高度和宽度。
使用全局Screen变量uses Forms;...Screen.Height { Screen height in pixels }Screen.Width { Screen width in pixels }...使用Windows API GetSystemMetrics()函数
此功能在不使用VCL的应用程序(例如控制台应用程序)中很有用。
uses Windows;...GetSystemMetric(SM_CXSCREEN) { Screen height in pixels }GetSystemMetric(SM_CYSCREEN) { Screen width in pixels }...
相关阅读 >>
Delphi 进程通讯之wm_copydata 发送程序(senddata.exe)
Delphi 文件/流的加密解密单元 unit_compress.pas
Delphi运行时的问题,cannot focus a disabled or invisible window!
更多相关阅读请进入《Delphi》频道 >>