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.

72 lines
1.9 KiB

  1. #include "stdafx.h"
  2. #include "WizardSheet.h"
  3. CExportSummary::CExportSummary( CWizardSheet* pTheSheet ) :
  4. m_pTheSheet( pTheSheet )
  5. {
  6. m_strTitle.LoadString( IDS_TITLE_EXPORT_SUMMARY );
  7. m_strSubTitle.LoadString( IDS_SUBTITLE_EXPORT_SUMMARY );
  8. SetHeaderTitle( m_strTitle );
  9. SetHeaderSubTitle( m_strSubTitle );
  10. }
  11. int CExportSummary::OnWizardBack()
  12. {
  13. return m_pTheSheet->m_pagePkgCfg.m_bPostProcess ? IDD_WPEXP_POSTPROCESS : IDD_WPEXP_PKG;
  14. }
  15. BOOL CExportSummary::OnSetActive()
  16. {
  17. SetWizardButtons( PSWIZB_BACK | PSWIZB_NEXT );
  18. CTreeViewCtrl Tree( GetDlgItem( IDC_SUMMARY ) );
  19. VERIFY( Tree.DeleteAllItems() );
  20. CString str;
  21. CString strYes, strNo;
  22. VERIFY( strYes.LoadString( IDS_YES ) );
  23. VERIFY( strNo.LoadString( IDS_NO ) );
  24. HTREEITEM hRoot = Tree.InsertItem( m_pTheSheet->m_pageSelectSite.m_strSiteName, NULL, NULL );
  25. str.Format( IDS_TV_SITEID, m_pTheSheet->m_pageSelectSite.m_dwSiteID );
  26. Tree.InsertItem( str, hRoot, TVI_LAST );
  27. str.Format( IDS_TV_PKGFILE, m_pTheSheet->m_pagePkgCfg.m_strFilename );
  28. Tree.InsertItem( str, hRoot, TVI_LAST );
  29. str.Format( IDS_TV_ENCRYPT, m_pTheSheet->m_pagePkgCfg.m_bEncrypt ? strYes : strNo );
  30. Tree.InsertItem( str, hRoot, TVI_LAST );
  31. str.Format( IDS_TV_COMPRESS, m_pTheSheet->m_pagePkgCfg.m_bCompress ? strYes : strNo );
  32. Tree.InsertItem( str, hRoot, TVI_LAST );
  33. str.Format( IDS_TV_EXPORTCONTENT, m_pTheSheet->m_pageSelectSite.m_bExportContent ? strYes : strNo );
  34. Tree.InsertItem( str, hRoot, TVI_LAST );
  35. str.Format( IDS_TV_EXPORTCERTIFICATE, m_pTheSheet->m_pageSelectSite.m_bExportCert ? strYes : strNo );
  36. Tree.InsertItem( str, hRoot, TVI_LAST );
  37. str.Format( IDS_TV_EXPORTACLS, m_pTheSheet->m_pageSelectSite.m_bExportACLs ? strYes : strNo );
  38. Tree.InsertItem( str, hRoot, TVI_LAST );
  39. Tree.Expand( hRoot );
  40. return TRUE;
  41. }