DlgSequenceNext();
DlgSequence(NEXT_DLG);
LRESULT CALLBACK DlgProcAdvancedSettings(HWND hDlg, UINT msg, WPARAM wParam, LONG lParam){  RECT  rDlg;  char  szBuf[MAX_BUF];  switch(msg)  {    case WM_INITDIALOG:      DisableSystemMenuItems(hDlg, FALSE);      SetWindowText(hDlg, diAdvancedSettings.szTitle);      SetDlgItemText(hDlg, IDC_MESSAGE0,          diAdvancedSettings.szMessage0);      SetDlgItemText(hDlg, IDC_EDIT_PROXY_SERVER, diAdvancedSettings.szProxyServer);      SetDlgItemText(hDlg, IDC_EDIT_PROXY_PORT,   diAdvancedSettings.szProxyPort);      SetDlgItemText(hDlg, IDC_EDIT_PROXY_USER,   diAdvancedSettings.szProxyUser);      SetDlgItemText(hDlg, IDC_EDIT_PROXY_PASSWD, diAdvancedSettings.szProxyPasswd);      if(GetClientRect(hDlg, &rDlg))        SetWindowPos(hDlg,                     HWND_TOP,                     (gSystemInfo.dwScreenX/2)-(rDlg.right/2),                     (gSystemInfo.dwScreenY/2)-(rDlg.bottom/2),                     0,                     0,                     SWP_NOSIZE);      GetPrivateProfileString("Strings", "IDC Use Ftp", "", szBuf, sizeof(szBuf), szFileIniConfig);      SetDlgItemText(hDlg, IDC_USE_FTP, szBuf);      GetPrivateProfileString("Strings", "IDC Use Http", "", szBuf, sizeof(szBuf), szFileIniConfig);      SetDlgItemText(hDlg, IDC_USE_HTTP, szBuf);      SetDlgItemText(hDlg, IDC_STATIC, sgInstallGui.szProxySettings);      SetDlgItemText(hDlg, IDC_STATIC1, sgInstallGui.szServer);      SetDlgItemText(hDlg, IDC_STATIC2, sgInstallGui.szPort);      SetDlgItemText(hDlg, IDC_STATIC3, sgInstallGui.szUserId);      SetDlgItemText(hDlg, IDC_STATIC4, sgInstallGui.szPassword);      SetDlgItemText(hDlg, IDWIZNEXT, sgInstallGui.szOk_);      SetDlgItemText(hDlg, IDCANCEL, sgInstallGui.szCancel_);      SendDlgItemMessage (hDlg, IDC_STATIC, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_STATIC1, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_STATIC2, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_STATIC3, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_STATIC4, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDWIZNEXT, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDCANCEL, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_MESSAGE0, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_EDIT_PROXY_SERVER, WM_SETFONT, (WPARAM)sgInstallGui.systemFont, 0L);      SendDlgItemMessage (hDlg, IDC_EDIT_PROXY_PORT, WM_SETFONT, (WPARAM)sgInstallGui.systemFont, 0L);      SendDlgItemMessage (hDlg, IDC_EDIT_PROXY_USER, WM_SETFONT, (WPARAM)sgInstallGui.systemFont, 0L);      SendDlgItemMessage (hDlg, IDC_EDIT_PROXY_PASSWD, WM_SETFONT, (WPARAM)sgInstallGui.systemFont, 0L);      SendDlgItemMessage (hDlg, IDC_USE_FTP, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_USE_HTTP, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      switch(diAdditionalOptions.dwUseProtocol)      {        case UP_HTTP:          CheckDlgButton(hDlg, IDC_USE_FTP,  BST_UNCHECKED);          CheckDlgButton(hDlg, IDC_USE_HTTP, BST_CHECKED);          break;        case UP_FTP:        default:          CheckDlgButton(hDlg, IDC_USE_FTP,  BST_CHECKED);          CheckDlgButton(hDlg, IDC_USE_HTTP, BST_UNCHECKED);          break;      }      if((diAdditionalOptions.bShowProtocols) && (diAdditionalOptions.bUseProtocolSettings))      {        ShowWindow(GetDlgItem(hDlg, IDC_USE_FTP),  SW_SHOW);        ShowWindow(GetDlgItem(hDlg, IDC_USE_HTTP), SW_SHOW);      }      else      {        ShowWindow(GetDlgItem(hDlg, IDC_USE_FTP),  SW_HIDE);        ShowWindow(GetDlgItem(hDlg, IDC_USE_HTTP), SW_HIDE);      }      break;    case WM_COMMAND:      switch(LOWORD(wParam))      {        case IDWIZNEXT:          dwWizardState = DLG_QUICK_LAUNCH;          /* get the proxy server and port information */          GetDlgItemText(hDlg, IDC_EDIT_PROXY_SERVER, diAdvancedSettings.szProxyServer, MAX_BUF);          GetDlgItemText(hDlg, IDC_EDIT_PROXY_PORT,   diAdvancedSettings.szProxyPort,   MAX_BUF);          GetDlgItemText(hDlg, IDC_EDIT_PROXY_USER,   diAdvancedSettings.szProxyUser,   MAX_BUF);          GetDlgItemText(hDlg, IDC_EDIT_PROXY_PASSWD, diAdvancedSettings.szProxyPasswd, MAX_BUF);          SaveDownloadProtocolOption(hDlg);          DestroyWindow(hDlg);          DlgSequenceNext();          break;        case IDWIZBACK:        case IDCANCEL:          DestroyWindow(hDlg);          DlgSequencePrev();          break;        default:          break;      }      break;  }  return(0);}