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.

100 lines
2.3 KiB

  1. // rsopprop.cpp : implementation file
  2. //
  3. #include "precomp.hxx"
  4. #ifdef _DEBUG
  5. #define new DEBUG_NEW
  6. #undef THIS_FILE
  7. static char THIS_FILE[] = __FILE__;
  8. #endif
  9. /////////////////////////////////////////////////////////////////////////////
  10. // rsopprop property page
  11. IMPLEMENT_DYNCREATE(CRsopProp, CPropertyPage)
  12. CRsopProp::CRsopProp() : CPropertyPage(CRsopProp::IDD)
  13. {
  14. //{{AFX_DATA_INIT(CRsopProp)
  15. m_szGroup = _T("");
  16. m_szGPO = _T("");
  17. m_szPath = _T("");
  18. m_szSetting = _T("");
  19. m_fMove = FALSE;
  20. m_fApplySecurity = FALSE;
  21. m_iRemoval = -1;
  22. //}}AFX_DATA_INIT
  23. }
  24. CRsopProp::~CRsopProp()
  25. {
  26. *m_ppThis = NULL;
  27. }
  28. void CRsopProp::DoDataExchange(CDataExchange* pDX)
  29. {
  30. CPropertyPage::DoDataExchange(pDX);
  31. //{{AFX_DATA_MAP(CRsopProp)
  32. DDX_Text(pDX, IDC_GROUP, m_szGroup);
  33. DDX_Text(pDX, IDC_GPO, m_szGPO);
  34. DDX_Text(pDX, IDC_PATH, m_szPath);
  35. DDX_Text(pDX, IDC_SETTING, m_szSetting);
  36. DDX_Check(pDX, IDC_PREF_MOVE, m_fMove);
  37. DDX_Check(pDX, IDC_PREF_APPLYSECURITY, m_fApplySecurity);
  38. DDX_Radio(pDX, IDC_PREF_ORPHAN, m_iRemoval);
  39. //}}AFX_DATA_MAP
  40. }
  41. BOOL CRsopProp::OnInitDialog()
  42. {
  43. AFX_MANAGE_STATE (AfxGetStaticModuleState());
  44. CString sz;
  45. CString sz2;
  46. GetDlgItemText(IDC_GPO, sz);
  47. m_szGPO.Format(sz, m_pInfo->m_szGPO);
  48. GetDlgItemText(IDC_SETTING, sz);
  49. sz2.LoadString(IDS_SETTINGS + m_pInfo->m_nInstallationType);
  50. m_szSetting.Format(sz, sz2);
  51. GetDlgItemText(IDC_GROUP, sz);
  52. m_szGroup.Format(sz, m_pInfo->m_szGroup);
  53. m_szPath = m_pInfo->m_szPath;
  54. m_fMove = m_pInfo->m_fMoveType;
  55. m_fApplySecurity = m_pInfo->m_fGrantType;
  56. m_iRemoval = m_pInfo->m_nPolicyRemoval - 1;
  57. GetDlgItemText(IDC_PREF_TITLE, sz);
  58. sz2.Format(sz, m_szFolder);
  59. SetDlgItemText(IDC_PREF_TITLE, sz2);
  60. GetDlgItemText(IDC_PREF_APPLYSECURITY, sz);
  61. sz2.Format(sz, m_szFolder);
  62. SetDlgItemText(IDC_PREF_APPLYSECURITY, sz2);
  63. GetDlgItemText(IDC_PREF_MOVE, sz);
  64. sz2.Format(sz, m_szFolder);
  65. SetDlgItemText(IDC_PREF_MOVE, sz2);
  66. CPropertyPage::OnInitDialog();
  67. return TRUE;
  68. }
  69. BEGIN_MESSAGE_MAP(CRsopProp, CPropertyPage)
  70. //{{AFX_MSG_MAP(CRsopProp)
  71. // NOTE: the ClassWizard will add message map macros here
  72. //}}AFX_MSG_MAP
  73. END_MESSAGE_MAP()
  74. /////////////////////////////////////////////////////////////////////////////
  75. // CRsopProp message handlers