int GetDeviceCaps(    HDC hdc, // device-context handle 
    int nIndex  // index of capability to query  
   );
 LOGPIXELSX Number of pixels per logical inch along the screen width.
LOGPIXELSY Number of pixels per logical inch along the screen height.

解决方案 »

  1.   

    chechy(我爱洁洁) 说得对,vcshcn(黑色的星星) 说的是获得每英寸上的象素的数目.而且获得屏幕上的像素好像应该使用screen.pixelsperinch函数
      

  2.   

    好象错了,用这个
    x=GetSystemMetrics(SM_CXSCREEN)
    y=GetSystemMetrics(SM_CYSCREEN)
      

  3.   

    Screen.Width
    Screen.Height
    够你用的了
      

  4.   

    对用screen对象就可以了!!!!!!!同意楼上,也可以用winapi函数,
    第十期的电脑报上就有相关的文章!
      

  5.   

    Screen.Width
    Screen.Height
    比较简单哦
      

  6.   

    屏幕的分辨率用这个
    x=GetSystemMetrics(SM_CXSCREEN)
    y=GetSystemMetrics(SM_CYSCREEN)
    同上。
      

  7.   

    var
      wi,hn:integer;
    begin
      wi:=Screen.Width;  //取得横坐标
      hn:=Screen.Height;  //取得纵坐标
    end;