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.

82 lines
2.4 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1994 **
  4. //*********************************************************************
  5. //
  6. // OLS.CPP - Functions for
  7. //
  8. // HISTORY:
  9. //
  10. // 06/02/98 vyung Created.
  11. //
  12. //*********************************************************************
  13. #include "pre.h"
  14. /*******************************************************************
  15. NAME: OLSInitProc
  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 OLSInitProc
  23. (
  24. HWND hDlg,
  25. BOOL fFirstInit,
  26. UINT *puNextPage
  27. )
  28. {
  29. // This is the very last page
  30. PropSheet_SetWizButtons(GetParent(hDlg),PSWIZB_BACK|PSWIZB_FINISH);
  31. // if we've travelled through external apprentice pages,
  32. // it's easy for our current page pointer to get munged,
  33. // so reset it here for sanity's sake.
  34. gpWizardState->uCurrentPage = ORD_PAGE_OLS;
  35. if (!fFirstInit)
  36. {
  37. ASSERT(gpWizardState->lpSelectedISPInfo);
  38. gpWizardState->pICWWebView->ConnectToWindow(GetDlgItem(hDlg, IDC_OLS_HTML), PAGETYPE_OLS_FINISH);
  39. // Navigate to the Billing HTML
  40. gpWizardState->lpSelectedISPInfo->DisplayHTML(gpWizardState->lpSelectedISPInfo->get_szBillingFormPath());
  41. }
  42. return TRUE;
  43. }
  44. BOOL CALLBACK OLSOKProc
  45. (
  46. HWND hDlg,
  47. BOOL fForward,
  48. UINT *puNextPage,
  49. BOOL *pfKeepHistory
  50. )
  51. {
  52. if (fForward)
  53. {
  54. IWebBrowser2 *lpWebBrowser;
  55. // Get the Browser Object
  56. gpWizardState->pICWWebView->get_BrowserObject(&lpWebBrowser);
  57. // Process the OLS file items (like registry update, and short cut creation
  58. gpWizardState->pHTMLWalker->ProcessOLSFile(lpWebBrowser);
  59. // Set ICW completed bit and remove the getconn icon
  60. if (gpWizardState->cmnStateData.lpfnCompleteOLS)
  61. (*gpWizardState->cmnStateData.lpfnCompleteOLS)();
  62. }
  63. return TRUE;
  64. }