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!

Categories

Transparent Colorkey Window (SetLayeredWindowAttributes)

I cant get trasparent window to work. I used the source code provided by microsoft here: http://msdn.microsoft.com/en-us/library/ms997507.aspx


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);
UpdateLayeredWindow(hDlg,NULL,NULL,0,0,0,0x00ffffff,0,ULW_COLORKEY);
..........


Is tere something more I need to do?

Sign In or Register to comment.