PostMessage(hWndMain, WM_COMMAND, IDWIZNEXT, 0);
DlgSequenceNext();
LRESULT CALLBACK DlgProcDownloadOptions(HWND hDlg, UINT msg, WPARAM wParam, LONG lParam){  RECT  rDlg;  char  szBuf[MAX_BUF];  HWND  hwndCBSiteSelector;  int   iIndex;  ssi   *ssiTemp;  char  szCBDefault[MAX_BUF];  hwndCBSiteSelector = GetDlgItem(hDlg, IDC_LIST_SITE_SELECTOR);  switch(msg)  {    case WM_INITDIALOG:      SetWindowText(hDlg, diDownloadOptions.szTitle);      SetDlgItemText(hDlg, IDC_MESSAGE0, diDownloadOptions.szMessage0);      SetDlgItemText(hDlg, IDC_MESSAGE1, diDownloadOptions.szMessage1);      GetSaveInstallerPath(szBuf, sizeof(szBuf));      SetDlgItemText(hDlg, IDC_EDIT_LOCAL_INSTALLER_PATH, szBuf);      if(GetClientRect(hDlg, &rDlg))        SetWindowPos(hDlg, HWND_TOP, (dwScreenX/2)-(rDlg.right/2), (dwScreenY/2)-(rDlg.bottom/2), 0, 0, SWP_NOSIZE);      ssiTemp = ssiSiteSelector;      do      {        if(ssiTemp == NULL)          break;        SendMessage(hwndCBSiteSelector, CB_ADDSTRING, 0, (LPARAM)(ssiTemp->szDescription));        ssiTemp = ssiTemp->Next;      } while(ssiTemp != ssiSiteSelector);      if((szSiteSelectorDescription == NULL) || (*szSiteSelectorDescription == '\0'))      {        if((NS_LoadString(hSetupRscInst, IDS_CB_DEFAULT, szCBDefault, MAX_BUF) == WIZ_OK) &&          ((iIndex = SendMessage(hwndCBSiteSelector, CB_SELECTSTRING, -1, (LPARAM)szCBDefault)) != CB_ERR))          SendMessage(hwndCBSiteSelector, CB_SETCURSEL, (WPARAM)iIndex, 0);        else          SendMessage(hwndCBSiteSelector, CB_SETCURSEL, 0, 0);      }      else if((iIndex = SendMessage(hwndCBSiteSelector, CB_SELECTSTRING, -1, (LPARAM)szSiteSelectorDescription)) != CB_ERR)        SendMessage(hwndCBSiteSelector, CB_SETCURSEL, (WPARAM)iIndex, 0);      else        SendMessage(hwndCBSiteSelector, CB_SETCURSEL, 0, 0);      if(diDownloadOptions.bSaveInstaller)        CheckDlgButton(hDlg, IDC_CHECK_SAVE_INSTALLER_FILES, BST_CHECKED);      else        CheckDlgButton(hDlg, IDC_CHECK_SAVE_INSTALLER_FILES, BST_UNCHECKED);      break;    case WM_COMMAND:      switch(LOWORD(wParam))      {        case IDWIZNEXT:          SaveDownloadOptions(hDlg, hwndCBSiteSelector);          DestroyWindow(hDlg);          PostMessage(hWndMain, WM_COMMAND, IDWIZNEXT, 0);          break;        case IDWIZBACK:          SaveDownloadOptions(hDlg, hwndCBSiteSelector);          DestroyWindow(hDlg);          PostMessage(hWndMain, WM_COMMAND, IDWIZBACK, 0);          break;        case IDC_BUTTON_ADDITIONAL_SETTINGS:          SaveDownloadOptions(hDlg, hwndCBSiteSelector);          dwWizardState = DLG_PROGRAM_FOLDER;          DestroyWindow(hDlg);          PostMessage(hWndMain, WM_COMMAND, IDWIZNEXT, 0);          break;        case IDCANCEL:          AskCancelDlg(hDlg);          break;        default:          break;      }      break;  }  return(0);}