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.

69 lines
1.5 KiB

  1. // IntroDlg.cpp : implementation file
  2. //
  3. #include "stdafx.h"
  4. #include "resource.h"
  5. #include "IntroDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CIntroDlg dialog
  13. CIntroDlg::CIntroDlg(CWnd* pParent /*=NULL*/)
  14. : CDialog(CIntroDlg::IDD, pParent)
  15. {
  16. //{{AFX_DATA_INIT(CIntroDlg)
  17. // NOTE: the ClassWizard will add member initialization here
  18. //}}AFX_DATA_INIT
  19. }
  20. void CIntroDlg::DoDataExchange(CDataExchange* pDX)
  21. {
  22. CDialog::DoDataExchange(pDX);
  23. //{{AFX_DATA_MAP(CIntroDlg)
  24. // NOTE: the ClassWizard will add DDX and DDV calls here
  25. DDX_Control(pDX, IDOK, m_NextBtn);
  26. //}}AFX_DATA_MAP
  27. }
  28. BEGIN_MESSAGE_MAP(CIntroDlg, CDialog)
  29. //{{AFX_MSG_MAP(CIntroDlg)
  30. //}}AFX_MSG_MAP
  31. END_MESSAGE_MAP()
  32. /////////////////////////////////////////////////////////////////////////////
  33. // CIntroDlg message handlers
  34. void CIntroDlg::OnCancel()
  35. {
  36. // TODO: Add extra cleanup here
  37. CString msg, title;
  38. title.LoadString(IDS_EXIT_TITLE);
  39. msg.LoadString(IDS_EXIT_MSG);
  40. if (MessageBox(msg, title, MB_YESNO | MB_ICONQUESTION) == IDYES)
  41. CDialog::OnCancel();
  42. }
  43. void CIntroDlg::OnOK()
  44. {
  45. // TODO: Add extra validation here
  46. CDialog::OnOK();
  47. }
  48. BOOL CIntroDlg::OnInitDialog()
  49. {
  50. CDialog::OnInitDialog();
  51. // TODO: Add extra initialization here
  52. return TRUE; // return TRUE unless you set the focus to a control
  53. // EXCEPTION: OCX Property Pages should return FALSE
  54. }