int with= GetSystemMetrics(SM_CXFULLSCREEN);

  int heigh= GetSystemMetrics(SM_CYFULLSCREEN);

通过上边两个函数获取的是显示屏幕的大小,及不包括任务栏等区域。

 

  int   cx   =   GetSystemMetrics(   SM_CXSCREEN   );   
  int   cy   =   GetSystemMetrics(   SM_CYSCREEN   );

这两个函数获取的是真正屏幕的大小。

用前两个函数获取的大小可能是1024*687    而用下边两个获取的就是1024*768

 

trackback: http://blog.csdn.net/doubaijun/article/details/3344625 

相关文章:

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