GetInt.cpp 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. // GetInt.cpp : 定义应用程序的类行为。
  2. //
  3. #include "stdafx.h"
  4. #include "GetInt.h"
  5. #include "ToolDialog.h"
  6. #ifdef _DEBUG
  7. #define new DEBUG_NEW
  8. #endif
  9. // CGetIntApp
  10. BEGIN_MESSAGE_MAP(CGetIntApp, CWinApp)
  11. ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
  12. END_MESSAGE_MAP()
  13. // CGetIntApp 构造
  14. CGetIntApp::CGetIntApp()
  15. {
  16. // 支持重新启动管理器
  17. // TODO: 在此处添加构造代码,
  18. // 将所有重要的初始化放置在 InitInstance 中
  19. //AFX_MANAGE_STATE(AfxGetStaticModuleState());
  20. //SetVisualTheme(BCGP_VISUAL_THEME_VS_2010);
  21. }
  22. // 唯一的一个 CGetIntApp 对象
  23. CGetIntApp theApp;
  24. // CGetIntApp 初始化
  25. BOOL CGetIntApp::InitInstance()
  26. {
  27. CWinApp::InitInstance();
  28. //AfxEnableControlContainer();
  29. //CToolImpl dlg;
  30. //m_pMainWnd = &dlg;
  31. //int nResponse = (int)dlg.DoModal();
  32. //if (nResponse == IDOK)
  33. //{
  34. // // TODO: Place code here to handle when the dialog is
  35. // // dismissed with OK
  36. //}
  37. //else if (nResponse == IDCANCEL)
  38. //{
  39. // // TODO: Place code here to handle when the dialog is
  40. // // dismissed with Cancel
  41. //}
  42. return TRUE;
  43. }