//获取的是显示屏幕的大小,及不包括任务栏等区域
 int with   = GetSystemMetrics(SM_CXFULLSCREEN);
 int height = GetSystemMetrics(SM_CYFULLSCREEN);

 //两个函数获取的是真正屏幕的大小
 int with  =  GetSystemMetrics(SM_CXSCREEN);
 int height=  GetSystemMetrics(SM_CYSCREEN);

相关文章:

  • 2022-12-23
  • 2021-09-16
  • 2022-02-07
  • 2021-05-23
猜你喜欢
  • 2021-07-03
  • 2021-11-01
  • 2021-08-15
  • 2022-01-11
  • 2021-12-22
  • 2021-10-02
相关资源
相似解决方案