CRect rect;
GetClipBox(&rect);
具体说一下GetClipBox这个函数的作用。rect指被剪下的还是剩下的区域?

解决方案 »

  1.   

    看MSDN
    Retrieves the dimensions of the tightest bounding rectangle around the current clipping boundary. The dimensions are copied to the buffer pointed to by lpRect.
    是剪下的区域
     
    不用给你翻译了吧?
      

  2.   

    那个我已经看过了,只是不明白:eg: rect.top ,rect.left指的那块?(一逻辑坐标为准)
      

  3.   

    你看一看GetClipBox相关的东东,比如下面see also中的Clipping Overview, Clipping Functions, RECT,弄懂了Clip的意义,GetClipBox自然而然就很清楚了。