creating transparent window 32 bit color schemes

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

creating transparent window 32 bit color schemes

Postby se21 » Wed Jan 22, 2014 9:57 am

Hi,

I'm trying to create a window with transparent background using CEF3 in Windows 7. I have done the following steps.

1.CreateWindowEx with "WS_EX_LAYERED"
2. DwmExtendFrameIntoClientArea(hWnd,&margins); (margins ={-1})
2.info.SetTransparentPainting(TRUE);
3.SetLayeredWindowAttributes(hWnd, RGB(255,0,0), 254, LWA_ALPHA | LWA_COLORKEY);<trying to make only red color into transparent>

This works fine if I test it on machine which has 16-bit color schemes. But I want to get this working on a 32-bit color scheme machine.
Can you please help me out to achieve that??
se21
Newbie
 
Posts: 8
Joined: Fri Jan 03, 2014 5:32 am

Return to Support Forum

Who is online

Users browsing this forum: No registered users and 206 guests