Voila mon source pour les valeur si dessous ,je les trouvé en faisant du pas a pas ,donc il y peut etre un meilleur moyen mais sa marche.A++
#define GRAS 1073741825 // GRAS
#define ITA 1073741826 // Italique
#define G_I 1073741827 // Gras et Italique
#define SOUL 1073741828 // Souligner
#define G_S 1073741829 // Gras et Souligner
#define S_I 1073741830 // Souligner et Italique
#define G_I_S 1073741831 // Gras,Italique et Souligner
//////////////////////////////////////////////
// Test si le mot selectionné est en Gras .
int CMailing::Gras()
{
CHARFORMAT2 cfa ;
m_ctrlREdit.GetSelectionCharFormat(cfa);
int iFormat = cfa.dwEffects ;
int iTaille = cfa.cbSize ;
CString sPolice = cfa.szFaceName ;
if((iFormat == GRAS)||(iFormat == G_S)||(iFormat == G_I)||(iFormat == G_I_S))
return 1;
else
return 0;
}
//////////////////////////////////////////////
// Test si le mot selectionné est en Italique .
int CMailing::Italique()
{
CHARFORMAT2 cfa ;
m_ctrlREdit.GetSelectionCharFormat(cfa);
int iFormat = cfa.dwEffects ;
int iTaille = cfa.cbSize ;
CString sPolice = cfa.szFaceName ;
if((iFormat == ITA)||(iFormat == S_I)||(iFormat == G_I)||(iFormat == G_I_S))
return 1;
else
return 0;
}
//////////////////////////////////////////////
// Test si le mot selectionné est Souligner .
int CMailing::Souligner()
{
CHARFORMAT2 cfa ;
m_ctrlREdit.GetSelectionCharFormat(cfa);
int iFormat = cfa.dwEffects ;
int iTaille = cfa.cbSize ;
CString sPolice = cfa.szFaceName ;
if((iFormat == SOUL)||(iFormat == G_S)||(iFormat == S_I)||(iFormat == G_I_S))
return 1;
else
return 0;
}