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.

107 lines
3.2 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1994 **
  4. //*********************************************************************
  5. //
  6. // ISDNNOFF.CPP - Functions for ISDN nooffer page
  7. //
  8. // HISTORY:
  9. //
  10. // 08/05/98 vyung created
  11. //
  12. //*********************************************************************
  13. #include "pre.h"
  14. /*******************************************************************
  15. NAME: ISDNNoofferInitProc
  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 ISDNNoofferInitProc
  23. (
  24. HWND hDlg,
  25. BOOL fFirstInit,
  26. UINT *puNextPage
  27. )
  28. {
  29. if (fFirstInit)
  30. {
  31. TCHAR szTemp[MAX_MESSAGE_LEN];
  32. LoadString(ghInstanceResDll, IDS_ISDN_NOOFFER1, szTemp, MAX_MESSAGE_LEN);
  33. SetWindowText(GetDlgItem(hDlg, IDC_NOOFFER1), szTemp);
  34. TCHAR* pszPageIntro = new TCHAR[MAX_MESSAGE_LEN * 2];
  35. if (pszPageIntro)
  36. {
  37. LoadString(ghInstanceResDll, IDS_ISDN_NOOFFER2, pszPageIntro, MAX_MESSAGE_LEN * 2);
  38. LoadString(ghInstanceResDll, IDS_ISDN_NOOFFER3, szTemp, ARRAYSIZE(szTemp));
  39. lstrcat(pszPageIntro, szTemp);
  40. SetWindowText(GetDlgItem(hDlg, IDC_NOOFFER2), pszPageIntro);
  41. delete [] pszPageIntro;
  42. }
  43. LoadString(ghInstanceResDll, IDS_ISDN_NOOFFER4, szTemp, MAX_MESSAGE_LEN);
  44. SetWindowText(GetDlgItem(hDlg, IDC_NOOFFER3), szTemp);
  45. }
  46. // if we've travelled through external apprentice pages,
  47. // it's easy for our current page pointer to get munged,
  48. // so reset it here for sanity's sake.
  49. gpWizardState->uCurrentPage = ORD_PAGE_ISDN_NOOFFER;
  50. //Twiddle the buttons to do a finish page
  51. HWND hwndSheet = GetParent(hDlg);
  52. PropSheet_SetWizButtons(hwndSheet, PSWIZB_FINISH | PSWIZB_BACK);
  53. PropSheet_Changed(hDlg, hwndSheet);
  54. return TRUE;
  55. }
  56. /*******************************************************************
  57. NAME: ISDNNoofferOKProc
  58. SYNOPSIS: Called when Next or Back btns pressed from page
  59. ENTRY: hDlg - dialog window
  60. fForward - TRUE if 'Next' was pressed, FALSE if 'Back'
  61. puNextPage - if 'Next' was pressed,
  62. proc can fill this in with next page to go to. This
  63. parameter is ingored if 'Back' was pressed.
  64. pfKeepHistory - page will not be kept in history if
  65. proc fills this in with FALSE.
  66. EXIT: returns TRUE to allow page to be turned, FALSE
  67. to keep the same page.
  68. ********************************************************************/
  69. BOOL CALLBACK ISDNNoofferOKProc
  70. (
  71. HWND hDlg,
  72. BOOL fForward,
  73. UINT *puNextPage,
  74. BOOL *pfKeepHistory
  75. )
  76. {
  77. return TRUE;
  78. }