This is embarassing to ask but i have no idea how to draw a filled rectangle in an XOR way into the DC.

I have my FillRect(hdc,&rect,hBrush) but when i try using the oldMode = SetROP2(hdcDesktop,R2_XORPEN); it does not XOR. According to MSDN it mentions that the filled interior should now be XORed but it isnt. Any ideas?

Thanks