急,多谢!

解决方案 »

  1.   

    BOOL DPtoLP(
      HDC hdc,           // handle to device context
      LPPOINT lpPoints,  // pointer to array of points
      int nCount         // count of points
    );BOOL LPtoDP(
      HDC hdc,           // handle of device context
      LPPOINT lpPoints,  // array of points
      int nCount         // count of points
    );
      

  2.   

    我想死!!!
    调用DPtoLP和LPtoDP后我要的东西在哪里呢?!
    函数是bool型的,不可能在返回值里,
    Points[]里原来是几现在还是几!
      

  3.   

    dpiX := GetDeviceCaps(Printer1.Handle,LOGPIXELSX);
    inch := Printer1.PageWidth/dpiX;
    这是打印机的。dpiX := GetDeviceCaps(GetDC(0),LOGPIXELSX);
    inch := Screen.Width/dpiX;
    这是屏幕的。总之,用像素除以dpi就可以了。来的好象有些迟哦。