case WM_INITDIALOG: DisableSystemMenuItems(hWndDlg, FALSE); CenterWindow(hWndDlg); if(gbShowDownloadRetryMsg) SetDlgItemText(hWndDlg, IDC_MESSAGE0, diDownload.szMessageRetry0); else SetDlgItemText(hWndDlg, IDC_MESSAGE0, diDownload.szMessageDownload0);
case WM_INITDIALOG: GetPrivateProfileString("Strings", "Status File Info", "", gszFileInfo, sizeof(gszFileInfo), szFileIniConfig); DisableSystemMenuItems(hWndDlg, FALSE); CenterWindow(hWndDlg); if(gbShowDownloadRetryMsg) SetDlgItemText(hWndDlg, IDC_MESSAGE0, diDownload.szMessageRetry0); else SetDlgItemText(hWndDlg, IDC_MESSAGE0, diDownload.szMessageDownload0);
DownloadDlgProc(HWND hWndDlg, UINT msg, WPARAM wParam, LPARAM lParam){	switch (msg)  {		case WM_INITDIALOG:		  DisableSystemMenuItems(hWndDlg, FALSE);				CenterWindow(hWndDlg);		  if(gbShowDownloadRetryMsg)			SetDlgItemText(hWndDlg, IDC_MESSAGE0, diDownload.szMessageRetry0);		  else			SetDlgItemText(hWndDlg, IDC_MESSAGE0, diDownload.szMessageDownload0);		  SetDlgItemText(hWndDlg, IDC_STATIC1, sgInstallGui.szStatus);		  SetDlgItemText(hWndDlg, IDC_STATIC2, sgInstallGui.szFile);		  SetDlgItemText(hWndDlg, IDC_STATIC3, sgInstallGui.szUrl);		  SetDlgItemText(hWndDlg, IDCANCEL, sgInstallGui.szCancel);		  SendDlgItemMessage (hWndDlg, IDC_STATIC1, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);		  SendDlgItemMessage (hWndDlg, IDC_STATIC2, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);		  SendDlgItemMessage (hWndDlg, IDC_STATIC3, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);		  SendDlgItemMessage (hWndDlg, IDCANCEL, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);		  SendDlgItemMessage (hWndDlg, IDC_MESSAGE0, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);		  SendDlgItemMessage (hWndDlg, IDC_STATUS_STATUS, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);		  SendDlgItemMessage (hWndDlg, IDC_STATUS_FILE, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);		  SendDlgItemMessage (hWndDlg, IDC_STATUS_URL, WM_SETFONT, (WPARAM)myGetSysFont(), 0L);			return FALSE;		case WM_SIZE:      switch(wParam)      {        case SIZE_MINIMIZED:          SetMinimizedDownloadTitle((int)GetPercentSoFar());          gbDlgDownloadMinimized = TRUE;          gbDlgDownloadJustMinimized = TRUE;          break;        case SIZE_RESTORED:          SetStatusUrl();          SetRestoredDownloadTitle();          gbDlgDownloadMinimized = FALSE;          break;      }      return(FALSE);		case WM_COMMAND:      switch(LOWORD(wParam))      {        case IDCANCEL:          if(AskCancelDlg(hWndDlg))            gbCancelDownload = TRUE;          break;        default:          break;      }			return(TRUE);	}	return(FALSE);  // didn't handle the message}