BOOL PatBlt(
  HDC hdc,     // handle to device context
  int nXLeft,  // x-coord. of upper-left corner of rect. to be filled
  int nYLeft,  // y-coord. of upper-left corner of rect. to be filled
  int nWidth,  // width of rectangle to be filled
  int nHeight, // height of rectangle to be filled
  DWORD dwRop  // raster operation code
);
 
virtual int GetClipBox( LPRECT lpRect ) const;Return ValueThe 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. 
Parameters//我英文有限,请各位打下执教,感激涕零~可是我没分了,大家不要介意
以后一定补上

解决方案 »

  1.   

    你可以在MSDN中搜索这两个函数,运气好的话,可以找到例子
    记住是搜索
      

  2.   

    PatBlt 使用当前的刷子,以指定的方式(PATCOPY PATINVERT DSTINVERT BLACKNESS WHITENESS )填充区域。如果是位图刷子,结果和BitBle就差不多。GetClipBox 每个DC都包含一个剪切区域,在该区域外的输出被剪切掉(不显示),GetClipBox 就是取得能够包含这些剪切区域的最小矩形。