fangkuai.cpp
Upload User: qdmjkjgcgs
Upload Date: 2014-10-06
Package Size: 8433k
Code Size: 2k
Category:

Windows CE

Development Platform:

Visual C++

  1. // fangkuai.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "fangkuai.h"
  5. #include "fangkuaiDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CFangkuaiApp
  13. BEGIN_MESSAGE_MAP(CFangkuaiApp, CWinApp)
  14. //{{AFX_MSG_MAP(CFangkuaiApp)
  15. ON_BN_CLICKED(IDC_GameOver, OnGameOver)
  16. //}}AFX_MSG_MAP
  17. END_MESSAGE_MAP()
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CFangkuaiApp construction
  20. CFangkuaiApp::CFangkuaiApp()
  21. : CWinApp()
  22. {
  23. // TODO: add construction code here,
  24. // Place all significant initialization in InitInstance
  25. }
  26. /////////////////////////////////////////////////////////////////////////////
  27. // The one and only CFangkuaiApp object
  28. CFangkuaiApp theApp;
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CFangkuaiApp initialization
  31. BOOL CFangkuaiApp::InitInstance()
  32. {
  33. // Standard initialization
  34. // If you are not using these features and wish to reduce the size
  35. //  of your final executable, you should remove from the following
  36. //  the specific initialization routines you do not need.
  37. CFangkuaiDlg dlg;
  38. m_pMainWnd = &dlg;
  39. int nResponse = dlg.DoModal();
  40. if (nResponse == IDOK)
  41. {
  42. // TODO: Place code here to handle when the dialog is
  43. //  dismissed with OK
  44. }
  45. else if (nResponse == IDCANCEL)
  46. {
  47. // TODO: Place code here to handle when the dialog is
  48. //  dismissed with Cancel
  49. }
  50. // Since the dialog has been closed, return FALSE so that we exit the
  51. //  application, rather than start the application's message pump.
  52. return FALSE;
  53. }
  54. void CFangkuaiApp::OnGameOver() 
  55. {
  56. // TODO: Add your control notification handler code here
  57. }