racpp
Messages postés1909Date d'inscriptionvendredi 18 juin 2004StatutModérateurDernière intervention14 novembre 201417 7 janv. 2007 à 03:46
Salut,
Il faut également retourner le HBRUSH correspondant à la couleur de fond de la fenêtre. Supposons que notre HBRUSH est déclaré en global:
HBRUSH hbFond;
Il est initialisé dans le code comme ceci:
hbFond=CreateSolidBrush(RGB(0,255,0));// vert
Ce HBRUSH sera utilisé pour fixer la couleur de fond de la fenêtre grâce au membre hbrBackground de la structure WNDCLASS.
Il ne reste plus qu'à traiter le message WM_CTLCOLORSTATIC:
case WM_CTLCOLORSTATIC:
SetBkMode((HDC)wParam, TRANSPARENT);
return (LRESULT) hbFond;
sebastienmz
Messages postés139Date d'inscriptionmardi 16 mai 2006StatutMembreDernière intervention23 juin 2008 6 janv. 2007 à 13:39
pour vecchio56 je met par exemple :
hwGroupBox2 = CreateWindow("button","Choix des dossiers",WS_VISIBLE | WS_CHILD | BS_GROUPBOX | WS_EX_TRANSPARENT,
3,80,534,60,hwnd,(HMENU)14,hInst,NULL);
? car sa marche pas
Pour magma je comprend pas a quoi doit corespondre wParam
Vous n’avez pas trouvé la réponse que vous recherchez ?