merci pour vos réponses, j'arrive bien à changer l'alpha de la fenêtre, voilà comment j'ai fait 
je vous montre hein, je suis tout content 
je crée ma fenêtre, je crois que seule CreateWindowEx me permet d'ajouter un style à ma fenêtre, j'ajoute WS_EX_LAYERED en style :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
hWnd = CreateWindowEx(WS_EX_LAYERED,
szWindowClass,
szTitle,
WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT,
CW_USEDEFAULT,
320,
240,
HWND_DESKTOP,
NULL,
hInst,
NULL
); |
puis j'affecte l'alpha avec SetLayeredWindowAttributes :
SetLayeredWindowAttributes(hWnd,RGB(187,221,255),180,LWA_ALPHA);
par contre toute ma fenêtre est transparente, y compris l'image contenue, comment rendre cette image encore visible ? avoir seulement la fenêtre transparente mais non pas son contenu ?
merci pour votre aide, c'est cool
Partager