wsprintf(szStrCopyingFileBuf, szStrCopyingFile, szFilename); SetDlgItemText(dlgInfo.hWndDlg, IDC_STATUS3, szStrCopyingFileBuf); UpdateGaugeFileProgressBar((unsigned)(((double)(val+1)/(double)max)*(double)100));
void cbXPIProgress(const char* msg, PRInt32 val, PRInt32 max){  if(max == 0)  {    UpdateFileStatus(msg);  }  else  {    UpdateGaugeFileProgressBar((unsigned)(((double)(val+1)/(double)max)*(double)100));    if((dwCurrentArchive % 2) == 0)    {      ++dwCurrentArchive;      UpdateGaugeArchiveProgressBar((unsigned)(((double)(dwCurrentArchive)/(double)dwTotalArchives)*(double)100));    }  }  ProcessWindowsMessages();}