PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_BACK);
LRESULT CALLBACK DlgProcLicense(HWND hDlg, UINT msg, WPARAM wParam, LONG lParam){  char            szBuf[MAX_BUF];  LPSTR           szLicenseFilenameBuf = NULL;  WIN32_FIND_DATA wfdFindFileData;  DWORD           dwFileSize;  DWORD           dwBytesRead;  HANDLE          hFLicense;  FILE            *fLicense;  LPNMHDR         notifyMessage;   switch(msg) {  case WM_INITDIALOG:    SetDlgItemText(hDlg, IDC_MESSAGE0, diLicense.szMessage0);    SetDlgItemText(hDlg, IDC_RADIO_ACCEPT, diLicense.szRadioAccept);    SetDlgItemText(hDlg, IDC_RADIO_DECLINE, diLicense.szRadioDecline);    // Check the "Decline" Radio button by default.     CheckDlgButton(hDlg, IDC_RADIO_DECLINE, BST_CHECKED);    SendMessage(GetDlgItem(hDlg, IDC_RADIO_DECLINE), BM_SETCHECK, BST_CHECKED, 0);    // License Text    lstrcpy(szBuf, szSetupDir);    AppendBackSlash(szBuf, sizeof(szBuf));    lstrcat(szBuf, diLicense.szLicenseFilename);    if((hFLicense = FindFirstFile(szBuf, &wfdFindFileData)) != INVALID_HANDLE_VALUE)    {      dwFileSize = (wfdFindFileData.nFileSizeHigh * MAXDWORD) + wfdFindFileData.nFileSizeLow + 1;      FindClose(hFLicense);      if((szLicenseFilenameBuf = NS_GlobalAlloc(dwFileSize)) != NULL)      {        if((fLicense = fopen(szBuf, "rb")) != NULL)        {          dwBytesRead = fread(szLicenseFilenameBuf, sizeof(char), dwFileSize, fLicense);          fclose(fLicense);          SetDlgItemText(hDlg, IDC_EDIT_LICENSE, szLicenseFilenameBuf);        }        FreeMemory(&szLicenseFilenameBuf);      }    }    break;  case WM_COMMAND:    switch (wParam) {    case IDC_RADIO_ACCEPT:      PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_NEXT|PSWIZB_BACK);      break;    case IDC_RADIO_DECLINE:      PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_BACK);      break;    }    break;  case WM_NOTIFY:    notifyMessage = (LPNMHDR)lParam;    switch (notifyMessage->code) {    case PSN_SETACTIVE:      // Wizard dialog title      PropSheet_SetTitle(GetParent(hDlg), 0, (LPTSTR)diLicense.szTitle);       if (IsDlgButtonChecked(hDlg, IDC_RADIO_DECLINE) == BST_CHECKED)         PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_BACK);        else        PropSheet_SetWizButtons(GetParent(hDlg), PSWIZB_NEXT|PSWIZB_BACK);            SendDlgItemMessage(hDlg, IDC_EDIT_LICENSE, EM_SETSEL, 0, 0);      break;    case PSN_QUERYCANCEL:      return !ShouldExitSetup(hDlg);    }    break;  }  return 0;}