懒码农。。。。。。

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

int with= GetSystemMetrics(SM_CXFULLSCREEN);

  int heigh= GetSystemMetrics(SM_CYFULLSCREEN);

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

 

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

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

posted on 2010-09-08 09:31  阿彬  阅读(3170)  评论(0编辑  收藏  举报