bon j'ai trouvé, je déclarais pas mon objet de la classe CFont au bon endroit, now, it's OK :sol:
Carbon_14
Le champ nHeight ne donne rien ??
Faudrait essayer de le mettre négatif, il me semble que c'est ce que je fais dans un autre contexte (vieux code avec autre fonction)..
HFONT CreateFont(
int nHeight, // logical height of font int nWidth, // logical average character width int nEscapement, // angle of escapement int nOrientation, // base-line orientation angle int fnWeight, // font weight DWORD fdwItalic, // italic attribute flag DWORD fdwUnderline, // underline attribute flag DWORD fdwStrikeOut, // strikeout attribute flag DWORD fdwCharSet, // character set identifier DWORD fdwOutputPrecision, // output precision DWORD fdwClipPrecision, // clipping precision DWORD fdwQuality, // output quality DWORD fdwPitchAndFamily, // pitch and family LPCTSTR lpszFace // pointer to typeface name string );
oh_damned
je n'arrive pas à modifier la taille de ma police que je créé avec CreateFont(...), j'ai essayé des modifs sur la plupart des champs : mais je ne parviens pas à faire changer la taille