newsinglemission.cpp 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //===========================================================================//
  2. // Copyright (C) Microsoft Corporation. All rights reserved. //
  3. //===========================================================================//
  4. // newsinglemission.cpp : implementation file
  5. //
  6. #include "stdafx.h"
  7. #include "resource.h"
  8. #include "newsinglemission.h"
  9. #ifdef _DEBUG
  10. #define new DEBUG_NEW
  11. #undef THIS_FILE
  12. static char THIS_FILE[] = __FILE__;
  13. #endif
  14. /////////////////////////////////////////////////////////////////////////////
  15. // NewSingleMission dialog
  16. NewSingleMission::NewSingleMission(CWnd* pParent /*=NULL*/)
  17. : CDialog(NewSingleMission::IDD, pParent)
  18. {
  19. //{{AFX_DATA_INIT(NewSingleMission)
  20. // NOTE: the ClassWizard will add member initialization here
  21. //}}AFX_DATA_INIT
  22. }
  23. void NewSingleMission::DoDataExchange(CDataExchange* pDX)
  24. {
  25. CDialog::DoDataExchange(pDX);
  26. //{{AFX_DATA_MAP(NewSingleMission)
  27. // NOTE: the ClassWizard will add DDX and DDV calls here
  28. //}}AFX_DATA_MAP
  29. }
  30. BEGIN_MESSAGE_MAP(NewSingleMission, CDialog)
  31. //{{AFX_MSG_MAP(NewSingleMission)
  32. ON_BN_CLICKED(ID_LOAD_MISSION, OnLoadMission)
  33. ON_BN_CLICKED(ID_NEWMISSION, OnNewmission)
  34. //}}AFX_MSG_MAP
  35. END_MESSAGE_MAP()
  36. /////////////////////////////////////////////////////////////////////////////
  37. // NewSingleMission message handlers
  38. void NewSingleMission::OnLoadMission()
  39. {
  40. EndDialog( ID_LOAD_MISSION );
  41. }
  42. void NewSingleMission::OnNewmission()
  43. {
  44. EndDialog( ID_NEWMISSION );
  45. }
  46. void NewSingleMission::OnCancel()
  47. {
  48. // TODO: Add extra cleanup here
  49. CDialog::OnCancel();
  50. }