bonsoir,

j'ai un listbox que j'aimerai mettre en transparent pour voir l'image qui se trouve sur la fiche,

j'ai bien tenté de mettresa propriété transparent a true .... ca donne rien,
du coup, j'ai tenté d'utiliser le code qui me permet de rendre transparent mes static test :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
HBRUSH DlListClick::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor)
{
	HBRUSH hbr;
 
	if ( ( nCtlColor == CTLCOLOR_STATIC ) || ( nCtlColor == CTLCOLOR_LISTBOX ) )
	{
		pDC->SetBkMode(TRANSPARENT);
		hbr = (HBRUSH)GetStockObject( NULL_BRUSH );
	}
 
	else
	{
		hbr = CDialog::OnCtlColor(pDC, pWnd, nCtlColor);
	}
 
	return hbr;
}
alors, ca marche... mon listbox est bien transparent,

seulement voila, une fois qu'une ligne a été sélectionnée,
elle le reste (enfin, la couleur bleu reste) plus moyen de revoir l'image derriere

comment corriger cela a votre avis ?