I use SetLayeredWindowAttributes for giving the dialogbox an irregular shape .it is working fine in Vista ,win 7 , But in XP(SP2 ,SP3) it shows the masked color .
I tried drawing the picture using GDI+ Graphics DrawImage and IPicture interface . no luck. when i tried with a BMP image it works fine in XP .but i need to draw a jpg or png . I am looking for some workaround without using any external lib like libpng I am bitblt ing the Dialog background on OnEraseBkgnd(CDC* pDC) . I tried googling but no luck so far .
Thanks in Advance .