ScreenToClient
ClientToScreen 
DPtoLP 
LPtoDP谢谢!!

解决方案 »

  1.   

    ScreenToClient
    把屏幕座标转换成客户区座标
    ClientToScreen 
    与上想反
    DPtoLP In Windows CE, you cannot change the window and viewport origins or extents, which means that device coordinates are always the same as logical coordinates. Because of this, the CDC::DPtoLP method does not do anything with the values you pass it.
    在window CE中,你改变不了窗口的视图原点或宽度,也就是说你的设备座标与你的逻辑座标是相同的,正如此,该函数对你传过去的值什么也没做!!LPtoDP
      

  2.   

    ScreenToClient和ClientToScreen同意楼上
    DPtoLP:设备坐标转逻辑坐标
    LPtoDP:逻辑坐标转设备坐标
    楼上说的是window CE中,但实际上在其他系统中还是有用的
      

  3.   

    完全同意jijinxu() ( ),详细的你可以查阅MSDN
      

  4.   

    ScreenToClient
    把屏幕座标转换成客户区座标
    ClientToScreen 
    与上想反
    DPtoLP:设备坐标转逻辑坐标
    LPtoDP:逻辑坐标转设备坐标