voilà le code
CFileFind find;
CString ModName;
CBitmap bmp;
if (bmp.LoadBitmap(IDB_NOPIC)==FALSE) MessageBox("Error" );
c_mod.GetText(c_mod.GetCurSel(),ModName.GetBuffer(255));
ModName.ReleaseBuffer();
if (find.FindFile(ModPath+ "\\"+ModName+"\\"+ModName+ ".bmp" ))
{
find.FindNextFile();
c_bit.SetBitmap((HBITMAP)LoadImage(0,find.GetFilePath(), IMAGE_BITMAP,NULL,NULL,LR_LOADFROMFILE));
}
else
{
c_bit.SetBitmap(bmp);
}
pourquoi le c_bit.SetBitmap(bmp); ne amrche t il pas sous Win9x (rien ne s'affiche).
De plus, quel que soit l'OS, l'image chargée par cette commande disparait dès que l'appli est cachée alors qu'elle reste afficvhée normalement quand elle est chargée par l'autre commande (cf le début du if) ??
merci d'avance..