CWnd::SetLayeredWindowAttributes
Visual Studio 2008
Sets the opacity and transparency color key of a layered window.
BOOL SetLayeredWindowAttributes( COLORREF crKey, BYTE bAlpha, DWORD dwFlags );
This member function emulates the functionality of the function SetLayeredWindowAttributes, as described in the Windows SDK.