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.

80 lines
2.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2001.
  5. //
  6. // File: Welcome.cpp
  7. //
  8. // Contents: Implementation of Add EFS Agent Wizard Welcome Page
  9. //
  10. //----------------------------------------------------------------------------
  11. #include "stdafx.h"
  12. #include "Welcome.h"
  13. #include "AddSheet.h"
  14. #ifdef _DEBUG
  15. #ifndef ALPHA
  16. #define new DEBUG_NEW
  17. #endif
  18. #undef THIS_FILE
  19. static char THIS_FILE[] = __FILE__;
  20. #endif
  21. /////////////////////////////////////////////////////////////////////////////
  22. // CAddEFSWizWelcome property page
  23. CAddEFSWizWelcome::CAddEFSWizWelcome() : CWizard97PropertyPage(CAddEFSWizWelcome::IDD)
  24. {
  25. //{{AFX_DATA_INIT(CAddEFSWizWelcome)
  26. // NOTE: the ClassWizard will add member initialization here
  27. //}}AFX_DATA_INIT
  28. InitWizard97 (TRUE);
  29. }
  30. CAddEFSWizWelcome::~CAddEFSWizWelcome()
  31. {
  32. }
  33. void CAddEFSWizWelcome::DoDataExchange(CDataExchange* pDX)
  34. {
  35. CWizard97PropertyPage::DoDataExchange(pDX);
  36. //{{AFX_DATA_MAP(CAddEFSWizWelcome)
  37. DDX_Control(pDX, IDC_STATICB_BOLD, m_boldStatic);
  38. //}}AFX_DATA_MAP
  39. }
  40. BEGIN_MESSAGE_MAP(CAddEFSWizWelcome, CWizard97PropertyPage)
  41. //{{AFX_MSG_MAP(CAddEFSWizWelcome)
  42. //}}AFX_MSG_MAP
  43. END_MESSAGE_MAP()
  44. /////////////////////////////////////////////////////////////////////////////
  45. // CAddEFSWizWelcome message handlers
  46. BOOL CAddEFSWizWelcome::OnSetActive()
  47. {
  48. BOOL bResult = CWizard97PropertyPage::OnSetActive();
  49. if ( bResult )
  50. GetParent ()->PostMessage (PSM_SETWIZBUTTONS, 0, PSWIZB_NEXT);
  51. return bResult;
  52. }
  53. BOOL CAddEFSWizWelcome::OnInitDialog()
  54. {
  55. CWizard97PropertyPage::OnInitDialog();
  56. m_boldStatic.SetFont (&GetBigBoldFont ());
  57. CString title;
  58. VERIFY (title.LoadString (IDS_ADDTITLE));
  59. CWnd* pParent = GetParent ();
  60. if ( pParent )
  61. pParent->SendMessage (PSM_SETTITLE, 0, (LPARAM) (LPCWSTR) title);
  62. return TRUE; // return TRUE unless you set the focus to a control
  63. // EXCEPTION: OCX Property Pages should return FALSE
  64. }