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.

83 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4. LScript.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 "LScript.h"
  13. #ifdef _DEBUG
  14. #define new DEBUG_NEW
  15. #undef THIS_FILE
  16. static char THIS_FILE[] = __FILE__;
  17. #endif
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CLoginScript property page
  20. IMPLEMENT_DYNCREATE(CLoginScript, CWizBaseDlg)
  21. CLoginScript::CLoginScript() : CWizBaseDlg(CLoginScript::IDD)
  22. {
  23. //{{AFX_DATA_INIT(CLoginScript)
  24. m_csLogonScript = _T("");
  25. //}}AFX_DATA_INIT
  26. }
  27. CLoginScript::~CLoginScript()
  28. {
  29. }
  30. void CLoginScript::DoDataExchange(CDataExchange* pDX)
  31. {
  32. CPropertyPage::DoDataExchange(pDX);
  33. //{{AFX_DATA_MAP(CLoginScript)
  34. DDX_Text(pDX, IDC_LOGON_SCRIPT, m_csLogonScript);
  35. //}}AFX_DATA_MAP
  36. }
  37. BEGIN_MESSAGE_MAP(CLoginScript, CWizBaseDlg)
  38. //{{AFX_MSG_MAP(CLoginScript)
  39. // NOTE: the ClassWizard will add message map macros here
  40. //}}AFX_MSG_MAP
  41. END_MESSAGE_MAP()
  42. /////////////////////////////////////////////////////////////////////////////
  43. // CLoginScript message handlers
  44. LRESULT CLoginScript::OnWizardNext()
  45. {
  46. CSpeckleApp* pApp = (CSpeckleApp*)AfxGetApp();
  47. UpdateData(TRUE);
  48. pApp->m_csLogonScript = m_csLogonScript;
  49. if (pApp->m_bHomeDir) return IDD_HOMEDIR_DIALOG;
  50. else if (pApp->m_bRAS) return IDD_RAS_PERM_DIALOG;
  51. else if (pApp->m_bNW) return IDD_FPNW_DLG;
  52. else if (pApp->m_bExchange) return IDD_EXCHANGE_DIALOG;
  53. else return IDD_RESTRICTIONS_DIALOG;
  54. }
  55. LRESULT CLoginScript::OnWizardBack()
  56. {
  57. CSpeckleApp* pApp = (CSpeckleApp*)AfxGetApp();
  58. if (pApp->m_bProfile) return IDD_PROFILE;
  59. else return IDD_OPTIONS_DIALOG;
  60. }