#include<iostream>
#include<windows.h>
using namespace std;
int main(){
RECT rect;
SystemParametersInfo(SPI_GETWORKAREA,0,(PVOID)&rect,0);
cout<<rect.left<<' '<<rect.right<<endl;
cout<<rect.top<<' '<<rect.bottom<<endl;
return 0;
}
C++获取电脑分辨率
最新推荐文章于 2020-11-21 15:15:08 发布