I would like to exclude rectangles from being painted in a window during the WM_PAINT
. The opposite is possible with the SelectClipRgn(hdc, hRegion);
however I want to paint everything except the region.
Thanks in advance, Jasper de Keijzer
You can only do that indirectly. (afaik)
Beware to use the right ComposingMode for your graphics objects. For drawing to the bitmap use SourceCopy (otherwise the area will not be completely transparent) and SourceOver for drawing the bitmap to your form (or control).