Salut,
J'ai un probléme pour mètre en couleur le fond du texte
Je crée un richedit sous cette forme:
Rich = CreateWindowEx(WS_EX_CLIENTEDGE, RICHEDIT_CLASS, "",
WS_CHILD | ES_AUTOHSCROLL | ES_AUTOVSCROLL | ES_MULTILINE
| ES_WANTRETURN | WS_HSCROLL | WS_VSCROLL | WS_VISIBLE, 100, 100, 300,300, hwnd, (HMENU)30,hInst, NULL);
Dans la modification du format des caractère le style:
CHARFORMAT2 Format;
CHARRANGE Selection;
ZeroMemory(&Format, sizeof(CHARFORMAT2));
Format.cbSize = sizeof(CHARFORMAT2);
Format.dwMask = CFM_BOLD | CFM_COLOR | CFM_FACE | CFM_ITALIC | CFM_SIZE | CFM_UNDERLINE | CFM_BACKCOLOR;
le CFM_BACKCOLOR -> il me dit erreur veuillez declaré , pourtant quand je le met pas la coloration du texte marche , j'ai vue CFM_BACKCOLOR dans une source , je me demande si c'était une erreur ou un include oublier par hazard.
Merci pour vos réponse.