Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

69 lines
2.0 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1994 **
  4. //*********************************************************************
  5. //
  6. // NOOFFER.CPP - Functions for
  7. //
  8. // HISTORY:
  9. //
  10. // 05/13/98 donaldm Created.
  11. //
  12. //*********************************************************************
  13. #include "pre.h"
  14. /*******************************************************************
  15. NAME: NoOfferInitProc
  16. SYNOPSIS: Called when page is displayed
  17. ENTRY: hDlg - dialog window
  18. fFirstInit - TRUE if this is the first time the dialog
  19. is initialized, FALSE if this InitProc has been called
  20. before (e.g. went past this page and backed up)
  21. ********************************************************************/
  22. BOOL CALLBACK NoOfferInitProc
  23. (
  24. HWND hDlg,
  25. BOOL fFirstInit,
  26. UINT *puNextPage
  27. )
  28. {
  29. // if we've travelled through external apprentice pages,
  30. // it's easy for our current page pointer to get munged,
  31. // so reset it here for sanity's sake.
  32. gpWizardState->uCurrentPage = ORD_PAGE_NOOFFER;
  33. TCHAR szTemp[MAX_MESSAGE_LEN * 2];
  34. LoadString(ghInstanceResDll, IDS_NOOFFER, szTemp, MAX_MESSAGE_LEN * 2);
  35. SetWindowText(GetDlgItem(hDlg, IDC_NOOFFER), szTemp);
  36. //Twiddle the buttons to do a finish page
  37. HWND hwndSheet = GetParent(hDlg);
  38. PropSheet_SetWizButtons(hwndSheet, PSWIZB_FINISH | PSWIZB_BACK);
  39. PropSheet_Changed(hDlg, hwndSheet);
  40. return TRUE;
  41. }
  42. BOOL CALLBACK NoOfferOKProc
  43. (
  44. HWND hDlg,
  45. BOOL fForward,
  46. UINT *puNextPage,
  47. BOOL *pfKeepHistory
  48. )
  49. {
  50. if (!fForward)
  51. {
  52. //If were going backward we want to trick the
  53. //wizard into thinking we were the isp select page
  54. gpWizardState->uCurrentPage = ORD_PAGE_ISPSELECT;
  55. }
  56. return TRUE;
  57. }