1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| extern char *g_szIdFormatGroup[];
//permet d'avoir le groupe du verbe
BOOL CViewConjugueResult::GetVerbeGroup(char *szVerbName)
{
BOOL bFind = -1;
if ( !strcmpi( szVerbName, g_szIdFormatGroup[0]))
bFind= 0;
else if ( !strcmpi( szVerbName, g_szIdFormatGroup[1]))
bFind= 1;
return bFind;
}
BOOL CViewConjugueResult::BuildIrregulVerbe(UINT wIdModele, char *szVerbName, STDATAVERBE *pStBaseVerbe)
{
char szData[512];
char sztemp[64];
char szParticipe[32];
UINT i;
memset(szParticipe, NUL, sizeof (szParticipe));
if (wIdModele == MODELE_ALLER)
wsprintf (szParticipe, "%ss",pStBaseVerbe->StIndicDuVerbe.szparticipePasse);
// Présent
//m_RichEdPresent.SetSel(0, -1);
//m_RichEdPresent.Clear();
memset(szData, NUL, sizeof(szData));
strcpy (szData, g_szRTfHeader);
for( i=0; i<6; i++)
{
wsprintf (sztemp,pStBaseVerbe->StIndicDuVerbe.szPresentData[i], BEGIN_BOLD_BLEU, END_BOLD_BLEU);
strcat(szData,sztemp);
strcat(szData,RTFCRLF);
}
m_RichEdPresent.SetWindowText(szData); |
Partager