SetTextColor(HDC,COLORREF);

cs_Xs Messages postés 368 Date d'inscription mercredi 14 novembre 2001 Statut Membre Dernière intervention 1 septembre 2008 - 29 mai 2002 à 17:29
cs_larafale Messages postés 8 Date d'inscription dimanche 12 septembre 2004 Statut Membre Dernière intervention 3 janvier 2008 - 3 janv. 2008 à 15:21
salut !
j'ai un probleme avec cette fonction que j'ai rencontré par hasard : elle ne marche pas. Je la compile correctement mais il ny'a a aucun effet produit.

voila mon code :

HDC hdc;

SetTextColor(hdc, RGB(255,0,128));

ou

HDC hdc;
COLORREF color;

color = RGB(255,0,128);

SetTextColor(hdc,color);

2 réponses

apientry Messages postés 16 Date d'inscription mardi 26 mars 2002 Statut Membre Dernière intervention 20 juillet 2002
5 juin 2002 à 09:59
Salut

regarde bien si tu as inclus:
#include <richedit.h>

ca peut servir ;-)
sinon va voir:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/fontext_8bsi.asp

A+
0
cs_larafale Messages postés 8 Date d'inscription dimanche 12 septembre 2004 Statut Membre Dernière intervention 3 janvier 2008
3 janv. 2008 à 15:21
Utilise SetTexColor avec TextOut

//...affiche le texte......................................en bleu
SetTextColor (hDC, RGB( 0 ,0 ,255 ));
TextOut( hDC, 750, 50, "Machin chose", 12 );

markar iteka erilar runar vritu
0
Rejoignez-nous