Salut,
C'est simple. Il faudra d'abord ajouter le style
WS_EX_LAYERED à la fenêtre avant d'appeler
SetLayeredWindowAttributes(). Voici un exemple:
HWND hwnd=FindWindow(0,"mafenetre");
LONG exstyle=GetWindowLong(hwnd,GWL_EXSTYLE);
SetWindowLong(hwnd,GWL_EXSTYLE, exstyle | WS_EX_LAYERED);
SetLayeredWindowAttributes(hwnd,0,128,LWA_ALPHA);
A noter que pour que le compilateur reconnaisse
SetLayeredWindowAttributes(), la première ligne du code doit être:
#define _WIN32_WINNT 0x0500