I'm attempting to try and learn how to use the new alphablended/layered window techniques introduced into Windows 2000 and later but I'm having a bit of trouble
I found an Article in MSDN called "Layered Windows" http://msdn.microsoft.com/library/de...l/layerwin.asp and it gave some code to insert into WM_INITDIALOG message processing for a dialog box to make it appear as opaque
// Set WS_EX_LAYERED on this window
GetWindowLong(hwnd, GWL_EXSTYLE) | WS_EX_LAYERED);
// Make this window 70% alpha
SetLayeredWindowAttributes(hwnd, 0, (255 * 70) / 100, LWA_ALPHA);
I thought I'd try this to begin with but I then recieved the error "Undeclared identifier SetLayeredWindowAttributes" and a few others when it came to compile.
In MSDN it says it is declared in Winuser.h; Include Windows.h which I have done. I opened up \platformsdk\include\Winuser.h in notepad and also found it in there.
I use Microsoft Visual Studio .NET Enterprise Arhitect and it says at the bottom of the MSDN collection "Platform SDK Release Auguest 2001" which I think should include these functions especially since SetLayeredWindowAttributes is documented within it.
Any help with this problem would be greatly appreciated. Also, if anyone has used the layered window functions for 2k/xp then any tips regarding that would also be helpful.
Thanks in advance,