BOOL PlgBlt(
   LPPOINT lpPoint,
   CDC* pSrcDC,
   int xSrc,
   int ySrc,
   int nWidth,
   int nHeight,
   CBitmap& maskBitmap,
   int xMask,
   int yMask
);
原形为上面所示,对于maskBitmap参数,文档中说得很清楚:
maskBitmap 
Identifies an optional monochrome bitmap that is used to mask the colors of the source rectangle.
说明是可选的,所以我不想使用这个参数,我不想要蒙板,那应该如何传递maskBitmap参数呢?
目前我是这样用的:
CBitmap nullBitmap;
nullBitmap.m_hObject=NULL;
然后把nullBitmap传给maskBitmap,可是我觉得很别扭,明明是不需要蒙板的,现在却要为它构造一个CBitmap类,而在类中示意这类的m_hObject为空,太做作了!难道就没有去掉后面三个参数的重载吗?