DlgSequencePrev();
DlgSequence(PREV_DLG);
LRESULT CALLBACK DlgProcWindowsIntegration(HWND hDlg, UINT msg, WPARAM wParam, LONG lParam){  HWND hcbCheck0;  HWND hcbCheck1;  HWND hcbCheck2;  HWND hcbCheck3;  RECT rDlg;  hcbCheck0 = GetDlgItem(hDlg, IDC_CHECK0);  hcbCheck1 = GetDlgItem(hDlg, IDC_CHECK1);  hcbCheck2 = GetDlgItem(hDlg, IDC_CHECK2);  hcbCheck3 = GetDlgItem(hDlg, IDC_CHECK3);  switch(msg)  {    case WM_INITDIALOG:      DisableSystemMenuItems(hDlg, FALSE);      SetWindowText(hDlg, diWindowsIntegration.szTitle);      SetDlgItemText(hDlg, IDC_MESSAGE0, diWindowsIntegration.szMessage0);      SetDlgItemText(hDlg, IDC_MESSAGE1, diWindowsIntegration.szMessage1);      if(diWindowsIntegration.wiCB0.bEnabled)      {        ShowWindow(hcbCheck0, SW_SHOW);        CheckDlgButton(hDlg, IDC_CHECK0, diWindowsIntegration.wiCB0.bCheckBoxState);        SetDlgItemText(hDlg, IDC_CHECK0, diWindowsIntegration.wiCB0.szDescription);      }      else        ShowWindow(hcbCheck0, SW_HIDE);      if(diWindowsIntegration.wiCB1.bEnabled)      {        ShowWindow(hcbCheck1, SW_SHOW);        CheckDlgButton(hDlg, IDC_CHECK1, diWindowsIntegration.wiCB1.bCheckBoxState);        SetDlgItemText(hDlg, IDC_CHECK1, diWindowsIntegration.wiCB1.szDescription);      }      else        ShowWindow(hcbCheck1, SW_HIDE);      if(diWindowsIntegration.wiCB2.bEnabled)      {        ShowWindow(hcbCheck2, SW_SHOW);        CheckDlgButton(hDlg, IDC_CHECK2, diWindowsIntegration.wiCB2.bCheckBoxState);        SetDlgItemText(hDlg, IDC_CHECK2, diWindowsIntegration.wiCB2.szDescription);      }      else        ShowWindow(hcbCheck2, SW_HIDE);      if(diWindowsIntegration.wiCB3.bEnabled)      {        ShowWindow(hcbCheck3, SW_SHOW);        CheckDlgButton(hDlg, IDC_CHECK3, diWindowsIntegration.wiCB3.bCheckBoxState);        SetDlgItemText(hDlg, IDC_CHECK3, diWindowsIntegration.wiCB3.szDescription);      }      else        ShowWindow(hcbCheck3, SW_HIDE);      if(GetClientRect(hDlg, &rDlg))        SetWindowPos(hDlg,                     HWND_TOP,                     (gSystemInfo.dwScreenX/2)-(rDlg.right/2),                     (gSystemInfo.dwScreenY/2)-(rDlg.bottom/2),                     0,                     0,                     SWP_NOSIZE);      SetDlgItemText(hDlg, IDWIZBACK, sgInstallGui.szBack_);      SetDlgItemText(hDlg, IDWIZNEXT, sgInstallGui.szNext_);      SetDlgItemText(hDlg, IDCANCEL, sgInstallGui.szCancel_);      SendDlgItemMessage (hDlg, IDWIZBACK, 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_CHECK0, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_CHECK1, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_CHECK2, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_CHECK3, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      SendDlgItemMessage (hDlg, IDC_MESSAGE1, WM_SETFONT, (WPARAM)sgInstallGui.definedFont, 0L);      break;    case WM_COMMAND:      switch(LOWORD(wParam))      {        case IDWIZNEXT:          if(IsDlgButtonChecked(hDlg, IDC_CHECK0) == BST_CHECKED)          {          }          if(diWindowsIntegration.wiCB0.bEnabled)          {            if(IsDlgButtonChecked(hDlg, IDC_CHECK0) == BST_CHECKED)              diWindowsIntegration.wiCB0.bCheckBoxState = TRUE;            else              diWindowsIntegration.wiCB0.bCheckBoxState = FALSE;          }          if(diWindowsIntegration.wiCB1.bEnabled)          {            if(IsDlgButtonChecked(hDlg, IDC_CHECK1) == BST_CHECKED)              diWindowsIntegration.wiCB1.bCheckBoxState = TRUE;            else              diWindowsIntegration.wiCB1.bCheckBoxState = FALSE;          }          if(diWindowsIntegration.wiCB2.bEnabled)          {            if(IsDlgButtonChecked(hDlg, IDC_CHECK2) == BST_CHECKED)              diWindowsIntegration.wiCB2.bCheckBoxState = TRUE;            else              diWindowsIntegration.wiCB2.bCheckBoxState = FALSE;          }          if(diWindowsIntegration.wiCB3.bEnabled)          {            if(IsDlgButtonChecked(hDlg, IDC_CHECK3) == BST_CHECKED)              diWindowsIntegration.wiCB3.bCheckBoxState = TRUE;            else              diWindowsIntegration.wiCB3.bCheckBoxState = FALSE;          }          DestroyWindow(hDlg);          DlgSequenceNext();          break;        case IDWIZBACK:          dwWizardState = DLG_WINDOWS_INTEGRATION;          DestroyWindow(hDlg);          DlgSequencePrev();          break;        case IDCANCEL:          AskCancelDlg(hDlg);          break;        default:          break;      }      break;  }  return(0);}