SetRect
The SetRect function sets the coordinates of the specified rectangle. This is equivalent to assigning the left, top, right, and bottom arguments to the appropriate members of the RECT structure. 
Res
Because applications can use rectangles for different purposes, the rectangle functions do not use an explicit unit of measure. Instead, all rectangle coordinates and dimensions are given in signed, logical values. The mapping mode and the function in which the rectangle is used determine the units of measure. 

解决方案 »

  1.   

    使用这个函数,不如直接为RECT的各个成员付值。
    RECT rc;
    rc.left = ...;
    rc.top = ...;
      

  2.   

    SetRect
    SetRect函数能设置指定矩形框的坐标。它等同于对RECT结构体的成员变量进行相应的上,下,左,右参数赋值。注意:
    由于矩形框使用上的不确定性,矩形框函数不会用一种确定的尺寸度量单位。相反,所有矩形框坐标和大小尺寸都是以示意的逻辑值方式给定。在使用矩形框时,特定的映射方式和函数决定尺寸的单位。
      

  3.   

    楼上的翻译很到位,就是这么回事,SetRect就是设置CRect对象的范围的。不过要考虑坐标变换问题,vc有好几种坐标呢。