voila j'enregistrement du fichier ne se fait pas, je doit surement mal utiliser la fonction : voivi mon code [code]CFileDialog dial(FALSE,"*.bmp",NULL,OFN_OVERWRITEPROMPT,"Courbe(*.bmp)|*.bmp||",this); dial.DoModal(); CString s= dial.GetFileName(); char *c =new char[s.GetLength()]; strcpy(c,s);
CWnd* pWnd; pWnd = GetDlgItem(IDC_STATIC_COURBE); CBitmap *pBmp=CopyWindowToBitmap(pWnd,true);
HWND hWnd; //CFile *f= new CFile(s,CFile::modeWrite|CFile::modeCreate);//je ne sais pas si il faut le mettre ou pas? hWnd = pWnd->GetSafeHwnd(); HwndToBmpFile(hWnd,c);[/code]
merci pour la fonction...
|