| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 | 
							
- #include "stdafx.h"
 
- #include "test.h"
 
- #include "testDlg.h"
 
- #ifdef _DEBUG
 
- #define new DEBUG_NEW
 
- #endif
 
- BEGIN_MESSAGE_MAP(CtestApp, CWinAppEx)
 
- 	ON_COMMAND(ID_HELP, &CWinApp::OnHelp)
 
- END_MESSAGE_MAP()
 
- CtestApp::CtestApp()
 
- {
 
- 	
 
- 	
 
- }
 
- CtestApp theApp;
 
- BOOL CtestApp::InitInstance()
 
- {
 
- 	
 
- 	
 
- 	
 
- 	INITCOMMONCONTROLSEX InitCtrls;
 
- 	InitCtrls.dwSize = sizeof(InitCtrls);
 
- 	
 
- 	
 
- 	InitCtrls.dwICC = ICC_WIN95_CLASSES;
 
- 	InitCommonControlsEx(&InitCtrls);
 
- 	CWinAppEx::InitInstance();
 
- 	AfxEnableControlContainer();
 
- 	
 
- 	
 
- 	
 
- 	
 
- 	
 
- 	
 
- 	
 
- 	SetRegistryKey(_T("应用程序向导生成的本地应用程序"));
 
- 	CtestDlg dlg;
 
- 	m_pMainWnd = &dlg;
 
- 	INT_PTR nResponse = dlg.DoModal();
 
- 	if (nResponse == IDOK)
 
- 	{
 
- 		
 
- 		
 
- 	}
 
- 	else if (nResponse == IDCANCEL)
 
- 	{
 
- 		
 
- 		
 
- 	}
 
- 	
 
- 	
 
- 	return FALSE;
 
- }
 
 
  |