对剪裁区的概念不是很清晰,有谁能解释一下。用pDC->GetClipBox()获得的区域,究竟是一个什么样的区域。

解决方案 »

  1.   

    Retrieves the dimensions of the tightest bounding rectangle around the current clipping boundary.virtual int GetClipBox(
       LPRECT lpRect 
    ) const;Parameters
    lpRect 
    Points to the RECT structure or CRect object that is to receive the rectangle dimensions. Return Value
    The clipping region's type. It can be any of the following values: COMPLEXREGION   Clipping region has overlapping borders. 
    ERROR   Device context is not valid. 
    NULLREGION   Clipping region is empty. 
    SIMPLEREGION   Clipping region has no overlapping borders.