Source code of Windows XP (NT5)
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.

105 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. Profile.cpp : implementation file
  5. CPropertyPage support for User mgmt wizard
  6. File History:
  7. JonY Apr-96 created
  8. --*/
  9. #include "stdafx.h"
  10. #include "Speckle.h"
  11. #include "wizbased.h"
  12. #include "Profile.h"
  13. #ifdef _DEBUG
  14. #undef THIS_FILE
  15. static char THIS_FILE[] = __FILE__;
  16. #endif
  17. /////////////////////////////////////////////////////////////////////////////
  18. // CProfile property page
  19. IMPLEMENT_DYNCREATE(CProfile, CWizBaseDlg)
  20. CProfile::CProfile() : CWizBaseDlg(CProfile::IDD)
  21. {
  22. //{{AFX_DATA_INIT(CProfile)
  23. m_csProfilePath = _T("");
  24. //}}AFX_DATA_INIT
  25. }
  26. CProfile::~CProfile()
  27. {
  28. }
  29. void CProfile::DoDataExchange(CDataExchange* pDX)
  30. {
  31. CPropertyPage::DoDataExchange(pDX);
  32. //{{AFX_DATA_MAP(CProfile)
  33. DDX_Text(pDX, IDC_PROFILE_PATH, m_csProfilePath);
  34. //}}AFX_DATA_MAP
  35. }
  36. BEGIN_MESSAGE_MAP(CProfile, CWizBaseDlg)
  37. //{{AFX_MSG_MAP(CProfile)
  38. //}}AFX_MSG_MAP
  39. END_MESSAGE_MAP()
  40. /////////////////////////////////////////////////////////////////////////////
  41. // CProfile message handlers
  42. BOOL CProfile::OnInitDialog()
  43. {
  44. CPropertyPage::OnInitDialog();
  45. UpdateData(FALSE);
  46. return TRUE; // return TRUE unless you set the focus to a control
  47. // EXCEPTION: OCX Property Pages should return FALSE
  48. }
  49. /*
  50. void CProfile::OnBrowseButton()
  51. {
  52. static TCHAR szFilter[] = _T("All Files (*.*)|*.*||");
  53. CFileDialog cf(TRUE, L"", NULL, OFN_FILEMUSTEXIST | OFN_EXPLORER | OFN_PATHMUSTEXIST, szFilter);
  54. if (cf.DoModal() == IDOK)
  55. {
  56. m_csProfilePath = cf.GetPathName();
  57. UpdateData(FALSE);
  58. }
  59. } */
  60. LRESULT CProfile::OnWizardNext()
  61. {
  62. CSpeckleApp* pApp = (CSpeckleApp*)AfxGetApp();
  63. UpdateData(TRUE);
  64. pApp->m_csProfilePath = m_csProfilePath;
  65. if (pApp->m_bLoginScript) return IDD_LOGON_SCRIPT_DIALOG;
  66. else if (pApp->m_bHomeDir) return IDD_HOMEDIR_DIALOG;
  67. else if (pApp->m_bRAS) return IDD_RAS_PERM_DIALOG;
  68. else if (pApp->m_bNW) return IDD_FPNW_DLG;
  69. else if (pApp->m_bExchange) return IDD_EXCHANGE_DIALOG;
  70. else return IDD_RESTRICTIONS_DIALOG;
  71. }
  72. LRESULT CProfile::OnWizardBack()
  73. {
  74. return IDD_OPTIONS_DIALOG;
  75. }