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.

67 lines
1.8 KiB

  1. // WizFirst.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "WizFirst.h"
  5. #ifdef _DEBUG
  6. #define new DEBUG_NEW
  7. #undef THIS_FILE
  8. static char THIS_FILE[] = __FILE__;
  9. #endif
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CWizWelcome property page
  12. IMPLEMENT_DYNCREATE(CWizWelcome, CPropertyPageEx)
  13. CWizWelcome::CWizWelcome() : CPropertyPageEx(CWizWelcome::IDD)
  14. {
  15. //{{AFX_DATA_INIT(CWizWelcome)
  16. // NOTE: the ClassWizard will add member initialization here
  17. //}}AFX_DATA_INIT
  18. m_psp.dwFlags |= PSP_HIDEHEADER;
  19. }
  20. CWizWelcome::~CWizWelcome()
  21. {
  22. }
  23. void CWizWelcome::DoDataExchange(CDataExchange* pDX)
  24. {
  25. CPropertyPageEx::DoDataExchange(pDX);
  26. //{{AFX_DATA_MAP(CWizWelcome)
  27. // NOTE: the ClassWizard will add DDX and DDV calls here
  28. //}}AFX_DATA_MAP
  29. }
  30. BEGIN_MESSAGE_MAP(CWizWelcome, CPropertyPageEx)
  31. //{{AFX_MSG_MAP(CWizWelcome)
  32. //}}AFX_MSG_MAP
  33. END_MESSAGE_MAP()
  34. /////////////////////////////////////////////////////////////////////////////
  35. // CWizWelcome message handlers
  36. BOOL CWizWelcome::OnInitDialog()
  37. {
  38. CPropertyPageEx::OnInitDialog();
  39. CShrwizApp *pApp = (CShrwizApp *)AfxGetApp();
  40. ((CPropertySheet *)GetParent())->GetDlgItemText(ID_WIZNEXT, pApp->m_cstrNextButtonText);
  41. ((CPropertySheet *)GetParent())->GetDlgItemText(ID_WIZFINISH, pApp->m_cstrFinishButtonText);
  42. GetDlgItem(IDC_WELCOME)->SendMessage(WM_SETFONT, (WPARAM)pApp->m_hTitleFont, (LPARAM)TRUE);
  43. return TRUE; // return TRUE unless you set the focus to a control
  44. // EXCEPTION: OCX Property Pages should return FALSE
  45. }
  46. BOOL CWizWelcome::OnSetActive()
  47. {
  48. ((CPropertySheet *)GetParent())->SetWizardButtons(PSWIZB_NEXT);
  49. return CPropertyPageEx::OnSetActive();
  50. }