Demo.cpp 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // Demo.cpp : Defines the class behaviors for the application.
  2. //
  3. #include "stdafx.h"
  4. #include "Demo.h"
  5. #include "DemoDlg.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #undef THIS_FILE
  9. static char THIS_FILE[] = __FILE__;
  10. #endif
  11. /////////////////////////////////////////////////////////////////////////////
  12. // CDemoApp
  13. BEGIN_MESSAGE_MAP(CDemoApp, CWinApp)
  14. //{{AFX_MSG_MAP(CDemoApp)
  15. // NOTE - the ClassWizard will add and remove mapping macros here.
  16. // DO NOT EDIT what you see in these blocks of generated code!
  17. //}}AFX_MSG
  18. END_MESSAGE_MAP()
  19. /////////////////////////////////////////////////////////////////////////////
  20. // CDemoApp construction
  21. CDemoApp::CDemoApp()
  22. {
  23. // TODO: add construction code here,
  24. // Place all significant initialization in InitInstance
  25. }
  26. /////////////////////////////////////////////////////////////////////////////
  27. // The one and only CDemoApp object
  28. CDemoApp theApp;
  29. /////////////////////////////////////////////////////////////////////////////
  30. // CDemoApp initialization
  31. BOOL CDemoApp::InitInstance()
  32. {
  33. // open the main dialog
  34. CDemoDlg dlg;
  35. m_pMainWnd = &dlg;
  36. dlg.DoModal();
  37. // Since the dialog has been closed, return FALSE so that we exit the
  38. // application, rather than start the application's message pump.
  39. return FALSE;
  40. }