// GetInt.cpp : 定义应用程序的类行为。 // #include "stdafx.h" #include "GetInt.h" #include "ToolDialog.h" #ifdef _DEBUG #define new DEBUG_NEW #endif // CGetIntApp BEGIN_MESSAGE_MAP(CGetIntApp, CWinApp) ON_COMMAND(ID_HELP, &CWinApp::OnHelp) END_MESSAGE_MAP() // CGetIntApp 构造 CGetIntApp::CGetIntApp() { // 支持重新启动管理器 // TODO: 在此处添加构造代码, // 将所有重要的初始化放置在 InitInstance 中 //AFX_MANAGE_STATE(AfxGetStaticModuleState()); //SetVisualTheme(BCGP_VISUAL_THEME_VS_2010); } // 唯一的一个 CGetIntApp 对象 CGetIntApp theApp; // CGetIntApp 初始化 BOOL CGetIntApp::InitInstance() { CWinApp::InitInstance(); //AfxEnableControlContainer(); //CToolImpl dlg; //m_pMainWnd = &dlg; //int nResponse = (int)dlg.DoModal(); //if (nResponse == IDOK) //{ // // TODO: Place code here to handle when the dialog is // // dismissed with OK //} //else if (nResponse == IDCANCEL) //{ // // TODO: Place code here to handle when the dialog is // // dismissed with Cancel //} return TRUE; }