Transparent Colorkey Window (SetLayeredWindowAttributes) - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Transparent Colorkey Window (SetLayeredWindowAttributes)

I cant get trasparent window to work. I used the source code provided by microsoft here:

But it doesnt work. I am wondering if it doesnt work on dialog windows?

..........Inside WM_INITDIALOG ......
SetWindowLong(hDlg, GWL_EXSTYLE, GetWindowLong(hDlg, GWL_EXSTYLE) | WS_EX_LAYERED);
SetLayeredWindowAttributes(hDlg, 0x00ffffff, 128, LWA_COLORKEY);

Is tere something more I need to do?

Sign In or Register to comment.