Bonjour
Pour ma petite application j'ai besoin de creer une "listbox" pour afficher une liste de fichiers.
Je voudrais pouvoir modifier la police (font) d'affichage du texte dans la "listebox" mais je n'y arrive pas.
J'ai essayer ce code :
hlistBox = CreateWindow("listbox",...);
hDC = GetDC(hlistBox);
font = CreateFont( -MulDiv(12,GetDeviceCaps(hDC,LOGPIXELSY),72) ,
0 ,
0 , 0 ,
FW_NORMAL ,
FALSE , FALSE , FALSE ,
DEFAULT_CHARSET ,
OUT_DEFAULT_PRECIS ,
CLIP_DEFAULT_PRECIS ,
ANTIALIASED_QUALITY ,
FF_ROMAN ,
"Times New Roman" );
SelectObject(hDC,font);
Mais ce code ne marche pas
Quelqu'un peut m'aider svp?
Merci d'avance.