vc获得屏幕大小

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

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

posted on 2011-06-10 10:00  DoubleSnake  阅读(1417)  评论(0编辑  收藏  举报